Skip to content

Commit

Permalink
feat: add regression test for getblock and getblockstats for with…
Browse files Browse the repository at this point in the history
…drawal fee calculation failure
  • Loading branch information
knst committed Oct 22, 2024
1 parent ab7172b commit b0d06f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/feature_asset_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,9 @@ def test_asset_unlocks(self, node_wallet, node, pubkey):
self.mempool_size -= 2
self.check_mempool_size()
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,
expected_error = "Transaction already in block chain",
Expand Down

0 comments on commit b0d06f0

Please sign in to comment.