Skip to content

Commit b0d06f0

Browse files
committed
feat: add regression test for getblock and getblockstats for withdrawal fee calculation failure
1 parent ab7172b commit b0d06f0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/feature_asset_locks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ def test_asset_unlocks(self, node_wallet, node, pubkey):
407407
self.mempool_size -= 2
408408
self.check_mempool_size()
409409
block_asset_unlock = node.getrawtransaction(asset_unlock_tx.rehash(), 1)['blockhash']
410+
self.log.info("Checking rpc `getblock` and `getblockstats` succeeds as they use own fee calculation mechanism")
411+
assert_equal(node.getblockstats(node.getblockcount())['maxfee'], tiny_amount)
412+
node.getblock(block_asset_unlock, 2)
410413

411414
self.send_tx(asset_unlock_tx,
412415
expected_error = "Transaction already in block chain",

0 commit comments

Comments
 (0)