aboutsummaryrefslogtreecommitdiff
path: root/utils/python-rpc/framework/daemon.py
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-07-24 13:55:12 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-07-24 13:55:12 -0500
commit4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f (patch)
tree071828244b24ab8109bb688b1e1cf7b771eaeebb /utils/python-rpc/framework/daemon.py
parentMerge pull request #5472 (diff)
parentpython-rpc: add missing getblock RPC parameters (diff)
downloadmonero-4c4586ca7b9ff5fd7668687a0d8b2bdc8a05f92f.tar.xz
Merge pull request #5473
ddf7890 python-rpc: add missing getblock RPC parameters (moneromooo-monero)
Diffstat (limited to 'utils/python-rpc/framework/daemon.py')
-rw-r--r--utils/python-rpc/framework/daemon.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py
index 04fc5b5cf..18ce37221 100644
--- a/utils/python-rpc/framework/daemon.py
+++ b/utils/python-rpc/framework/daemon.py
@@ -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'