mirror of
https://github.com/monero-project/monero.git
synced 2025-08-06 05:04:32 -04:00
Merge pull request #5490
1a93aa4
functional_tests: add get_fee_estimate to blockchain test (moneromooo-monero)
This commit is contained in:
commit
50c8147568
2 changed files with 23 additions and 0 deletions
|
@ -78,6 +78,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)
|
||||
|
||||
|
@ -229,6 +235,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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue