diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-24 13:25:21 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-24 13:27:35 +0000 |
commit | 1a93aa4b793586803bd67374c2afc7eeb634316a (patch) | |
tree | 32b3799223997c033f8103a45176b6eda6732acf /utils/python-rpc | |
parent | Merge pull request #5466 (diff) | |
download | monero-1a93aa4b793586803bd67374c2afc7eeb634316a.tar.xz |
functional_tests: add get_fee_estimate to blockchain test
Diffstat (limited to 'utils/python-rpc')
-rw-r--r-- | utils/python-rpc/framework/daemon.py | 11 |
1 files changed, 11 insertions, 0 deletions
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) |