diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-17 14:15:41 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-21 19:28:06 +0000 |
commit | 9e979ffa22b20bc3c11f508ae09647922bf18952 (patch) | |
tree | 422f9e10a67e1be4427a4af859e495c1d232700c /tests/functional_tests/test_framework/daemon.py | |
parent | functional_tests: add integrated address tests (diff) | |
download | monero-9e979ffa22b20bc3c11f508ae09647922bf18952.tar.xz |
functional_tests: add txpool RPC tests
Diffstat (limited to 'tests/functional_tests/test_framework/daemon.py')
-rw-r--r-- | tests/functional_tests/test_framework/daemon.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/functional_tests/test_framework/daemon.py b/tests/functional_tests/test_framework/daemon.py index 6088fc0df..ee1fcc0fc 100644 --- a/tests/functional_tests/test_framework/daemon.py +++ b/tests/functional_tests/test_framework/daemon.py @@ -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) |