functional_tests: add get_transaction_pool_stats

Also fix part of the RPC results being returned as binary.
This makes the RPC backward incompatible.
This commit is contained in:
moneromooo-monero 2019-05-09 18:36:19 +00:00
parent 51bd45c352
commit d53a55204f
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 92 additions and 3 deletions

View file

@ -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',