daemon: add more chain specific info in alt_chain_info

This commit is contained in:
moneromooo-monero 2019-05-09 10:13:12 +00:00
parent 4228ee0b9e
commit 880ebfdeea
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 116 additions and 31 deletions

View file

@ -88,11 +88,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'