mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 09:56:07 -04:00
python-rpc: add missing getblock RPC parameters
This commit is contained in:
parent
475481949a
commit
ddf7890730
2 changed files with 8 additions and 6 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue