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 /tests/functional_tests/blockchain.py | |
parent | Merge pull request #5466 (diff) | |
download | monero-1a93aa4b793586803bd67374c2afc7eeb634316a.tar.xz |
functional_tests: add get_fee_estimate to blockchain test
Diffstat (limited to 'tests/functional_tests/blockchain.py')
-rwxr-xr-x | tests/functional_tests/blockchain.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional_tests/blockchain.py b/tests/functional_tests/blockchain.py index 56164600d..bdf72b72c 100755 --- a/tests/functional_tests/blockchain.py +++ b/tests/functional_tests/blockchain.py @@ -70,6 +70,12 @@ class BlockchainTest(): except: ok = True assert ok + res = daemon.get_fee_estimate() + assert res.fee == 234562 + assert res.quantization_mask == 10000 + res = daemon.get_fee_estimate(10) + assert res.fee <= 234562 + # generate blocks res_generateblocks = daemon.generateblocks('42ey1afDFnn4886T7196doS9GPMzexD9gXpsZJDwVjeRVdFCSoHnv7KPbBeGpzJBzHRCAs9UxqeoyFQMYbqSWYTfJJQAWDm', blocks) @@ -221,6 +227,12 @@ class BlockchainTest(): assert res.histogram[i].unlocked_instances == 0 assert res.histogram[i].recent_instances == 0 + res = daemon.get_fee_estimate() + assert res.fee == 234560 + assert res.quantization_mask == 10000 + res = daemon.get_fee_estimate(10) + assert res.fee <= 234560 + def _test_alt_chains(self): print('Testing alt chains') daemon = Daemon() |