aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-20 15:46:48 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-05-09 11:48:54 +0000
commitddf789073046ca7a396c159550d5896aa7de709b (patch)
tree93cf99954dfc384359b043b34e610a7410fdd880 /utils
parentMerge pull request #5466 (diff)
downloadmonero-ddf789073046ca7a396c159550d5896aa7de709b.tar.xz
python-rpc: add missing getblock RPC parameters
Diffstat (limited to 'utils')
-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'