mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
feat: add regression test for getblock
and getblockstats
for withdrawal fee calculation failure
This commit is contained in:
parent
ab7172bc8f
commit
b0d06f0b5f
@ -407,6 +407,9 @@ class AssetLocksTest(DashTestFramework):
|
|||||||
self.mempool_size -= 2
|
self.mempool_size -= 2
|
||||||
self.check_mempool_size()
|
self.check_mempool_size()
|
||||||
block_asset_unlock = node.getrawtransaction(asset_unlock_tx.rehash(), 1)['blockhash']
|
block_asset_unlock = node.getrawtransaction(asset_unlock_tx.rehash(), 1)['blockhash']
|
||||||
|
self.log.info("Checking rpc `getblock` and `getblockstats` succeeds as they use own fee calculation mechanism")
|
||||||
|
assert_equal(node.getblockstats(node.getblockcount())['maxfee'], tiny_amount)
|
||||||
|
node.getblock(block_asset_unlock, 2)
|
||||||
|
|
||||||
self.send_tx(asset_unlock_tx,
|
self.send_tx(asset_unlock_tx,
|
||||||
expected_error = "Transaction already in block chain",
|
expected_error = "Transaction already in block chain",
|
||||||
|
Loading…
Reference in New Issue
Block a user