diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-22 16:25:07 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-23 18:59:49 +0000 |
commit | 32973434bd6aaba159b2bd805c3fc24fad7deb52 (patch) | |
tree | d6409616fb5fd76927e0c7026be767d483758a7b /utils/python-rpc/framework/daemon.py | |
parent | python-rpc: add console.py (diff) | |
download | monero-32973434bd6aaba159b2bd805c3fc24fad7deb52.tar.xz |
python-rpc: add getblockheadersrange daemon RPC
Diffstat (limited to 'utils/python-rpc/framework/daemon.py')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 83c8eea67..f60fe62db 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -106,6 +106,19 @@ class Daemon(object): } return self.rpc.send_json_rpc_request(getblockheaderbyheight) + def getblockheadersrange(self, start_height, end_height, fill_pow_hash = False): + getblockheadersrange = { + 'method': 'getblockheadersrange', + 'params': { + 'start_height': start_height, + 'end_height': end_height, + 'fill_pow_hash': fill_pow_hash, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(getblockheadersrange) + def get_connections(self): get_connections = { 'method': 'get_connections', |