python-rpc: add missing getblock RPC parameters

This commit is contained in:
moneromooo-monero 2019-04-20 15:46:48 +00:00
parent 475481949a
commit ddf7890730
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
2 changed files with 8 additions and 6 deletions

View file

@ -67,11 +67,13 @@ class Daemon(object):
}
return self.rpc.send_json_rpc_request(submitblock)
def getblock(self, height=0):
def getblock(self, hash = '', height = 0, fill_pow_hash = False):
getblock = {
'method': 'getblock',
'params': {
'height': height
'hash': hash,
'height': height,
'fill_pow_hash': fill_pow_hash,
},
'jsonrpc': '2.0',
'id': '0'