From d53a55204fd0c10845b8872837ff14aff17ff1c0 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 9 May 2019 18:36:19 +0000 Subject: functional_tests: add get_transaction_pool_stats Also fix part of the RPC results being returned as binary. This makes the RPC backward incompatible. --- utils/python-rpc/framework/daemon.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/python-rpc') diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index f9bc51eb2..89b13b951 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -208,6 +208,11 @@ class Daemon(object): } return self.rpc.send_request('/get_transaction_pool_hashes', get_transaction_pool_hashes) + def get_transaction_pool_stats(self): + get_transaction_pool_stats = { + } + return self.rpc.send_request('/get_transaction_pool_stats', get_transaction_pool_stats) + def flush_txpool(self, txids = []): flush_txpool = { 'method': 'flush_txpool', -- cgit v1.2.3