feat: add regression test for getblock and getblockstats for withdrawal fee calculation failure

This commit is contained in:
Konstantin Akimov 2024-10-22 18:58:07 +07:00
parent ab7172bc8f
commit b0d06f0b5f
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -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",