Merge pull request #5525

0605406 daemon: sort alt chains by height (moneromooo-monero)
4228ee0  daemon: add optional arguments to alt_chain_info (moneromooo-monero)
880ebfd daemon: add more chain specific info in alt_chain_info (moneromooo-monero)
This commit is contained in:
luigi1111 2019-08-14 15:31:52 -05:00
commit 564bb1da3a
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
10 changed files with 169 additions and 43 deletions

View file

@ -90,11 +90,12 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(getlastblockheader)
def getblockheaderbyhash(self, hash):
def getblockheaderbyhash(self, hash = "", hashes = []):
getblockheaderbyhash = {
'method': 'getblockheaderbyhash',
'params': {
'hash': hash,
'hashes': hashes,
},
'jsonrpc': '2.0',
'id': '0'