Skip to content

Commit

Permalink
test: Assert that a new tx with a delta of 0 is never added
Browse files Browse the repository at this point in the history
  • Loading branch information
kevkevinpal committed Nov 22, 2023
1 parent 62d92e1 commit fd7825b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/mining_prioritisetransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,12 @@ def run_test(self):
if (x != high_fee_tx):
assert x not in mempool


self.log.info("Assert that prioritised free transaction with 0 delta is never added to mapDeltas")
tx_id_zero_del = self.wallet.create_self_transfer(fee_rate=0)['txid']
self.nodes[0].prioritisetransaction(txid=tx_id_zero_del, fee_delta=0)
assert tx_id_zero_del not in self.nodes[0].getrawmempool()

# Create a free transaction. Should be rejected.
tx_res = self.wallet.create_self_transfer(fee_rate=0)
tx_hex = tx_res['hex']
Expand Down

0 comments on commit fd7825b

Please sign in to comment.