From 0eebd6fe7d01ddc7f6b7f13a6ed6e705c7aeae4e Mon Sep 17 00:00:00 2001 From: kevkevin Date: Tue, 14 Nov 2023 16:11:25 -0600 Subject: [PATCH] test: Assert that a new tx with a delta of 0 is never added --- test/functional/mining_prioritisetransaction.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/mining_prioritisetransaction.py b/test/functional/mining_prioritisetransaction.py index 19179d1e3c..c5f34e3ecb 100755 --- a/test/functional/mining_prioritisetransaction.py +++ b/test/functional/mining_prioritisetransaction.py @@ -263,6 +263,12 @@ class PrioritiseTransactionTest(BitcoinTestFramework): if (x != high_fee_tx): assert x not in mempool + + self.log.info("Assert that 0 delta is never added to mapDeltas") + tx_id_zero_del = self.wallet.create_self_transfer()['txid'] + self.nodes[0].prioritisetransaction(txid=tx_id_zero_del, fee_delta=0) + assert tx_id_zero_del not in self.nodes[0].getprioritisedtransactions() + # Create a free transaction. Should be rejected. tx_res = self.wallet.create_self_transfer(fee_rate=0) tx_hex = tx_res['hex']