mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
python-rpc: add getblockheadersrange daemon RPC
This commit is contained in:
parent
c7bfdc3566
commit
32973434bd
1 changed files with 13 additions and 0 deletions
|
@ -106,6 +106,19 @@ class Daemon(object):
|
||||||
}
|
}
|
||||||
return self.rpc.send_json_rpc_request(getblockheaderbyheight)
|
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):
|
def get_connections(self):
|
||||||
get_connections = {
|
get_connections = {
|
||||||
'method': 'get_connections',
|
'method': 'get_connections',
|
||||||
|
|
Loading…
Reference in a new issue