functional_tests: add txpool RPC tests

This commit is contained in:
moneromooo-monero 2019-03-17 14:15:41 +00:00
parent 3e93c157bd
commit 9e979ffa22
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 178 additions and 1 deletions

View file

@ -168,3 +168,24 @@ class Daemon(object):
mining_status = {
}
return self.rpc.send_request('/mining_status', mining_status)
def get_transaction_pool(self):
get_transaction_pool = {
}
return self.rpc.send_request('/get_transaction_pool', get_transaction_pool)
def get_transaction_pool_hashes(self):
get_transaction_pool_hashes = {
}
return self.rpc.send_request('/get_transaction_pool_hashes', get_transaction_pool_hashes)
def flush_txpool(self, txids = []):
flush_txpool = {
'method': 'flush_txpool',
'params': {
'txids': txids
},
'jsonrpc': '2.0',
'id': '0'
}
return self.rpc.send_json_rpc_request(flush_txpool)