mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #6593
6f5411d30
tests: fix missing error on missing python entry point (moneromooo-monero)c6dc2850c
python-rpc: add missing sync_txpool python entry point (moneromooo-monero)
This commit is contained in:
commit
9eebe01c58
2 changed files with 11 additions and 0 deletions
|
@ -46,5 +46,6 @@ for module in modules:
|
||||||
name = name[1:]
|
name = name[1:]
|
||||||
if not hasattr(module['object'], name):
|
if not hasattr(module['object'], name):
|
||||||
print('Error: %s API method %s does not have a matching function' % (module['name'], name))
|
print('Error: %s API method %s does not have a matching function' % (module['name'], name))
|
||||||
|
error = True
|
||||||
|
|
||||||
sys.exit(1 if error else 0)
|
sys.exit(1 if error else 0)
|
||||||
|
|
|
@ -554,6 +554,16 @@ class Daemon(object):
|
||||||
}
|
}
|
||||||
return self.rpc.send_json_rpc_request(flush_cache)
|
return self.rpc.send_json_rpc_request(flush_cache)
|
||||||
|
|
||||||
|
def sync_txpool(self):
|
||||||
|
sync_txpool = {
|
||||||
|
'method': 'sync_txpool',
|
||||||
|
'params': {
|
||||||
|
},
|
||||||
|
'jsonrpc': '2.0',
|
||||||
|
'id': '0'
|
||||||
|
}
|
||||||
|
return self.rpc.send_json_rpc_request(sync_txpool)
|
||||||
|
|
||||||
def rpc_access_info(self, client):
|
def rpc_access_info(self, client):
|
||||||
rpc_access_info = {
|
rpc_access_info = {
|
||||||
'method': 'rpc_access_info',
|
'method': 'rpc_access_info',
|
||||||
|
|
Loading…
Reference in a new issue