mirror of
https://github.com/monero-project/monero.git
synced 2025-05-03 02:54:51 -04:00
functional_tests: add txpool RPC tests
This commit is contained in:
parent
3e93c157bd
commit
9e979ffa22
3 changed files with 178 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue