From 1a93aa4b793586803bd67374c2afc7eeb634316a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 24 Apr 2019 13:25:21 +0000 Subject: functional_tests: add get_fee_estimate to blockchain test --- utils/python-rpc/framework/daemon.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'utils') diff --git a/utils/python-rpc/framework/daemon.py b/utils/python-rpc/framework/daemon.py index 04fc5b5cf..bbac31980 100644 --- a/utils/python-rpc/framework/daemon.py +++ b/utils/python-rpc/framework/daemon.py @@ -330,3 +330,14 @@ class Daemon(object): 'id': '0' } return self.rpc.send_json_rpc_request(get_alternate_chains) + + def get_fee_estimate(self, grace_blocks = 0): + get_fee_estimate = { + 'method': 'get_fee_estimate', + 'params': { + 'grace_blocks': grace_blocks, + }, + 'jsonrpc': '2.0', + 'id': '0' + } + return self.rpc.send_json_rpc_request(get_fee_estimate) -- cgit v1.2.3