mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
test: Assert that a new tx with a delta of 0 is never added
This commit is contained in:
parent
cfdbcd19b3
commit
0eebd6fe7d
1 changed files with 6 additions and 0 deletions
|
@ -263,6 +263,12 @@ class PrioritiseTransactionTest(BitcoinTestFramework):
|
||||||
if (x != high_fee_tx):
|
if (x != high_fee_tx):
|
||||||
assert x not in mempool
|
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.
|
# Create a free transaction. Should be rejected.
|
||||||
tx_res = self.wallet.create_self_transfer(fee_rate=0)
|
tx_res = self.wallet.create_self_transfer(fee_rate=0)
|
||||||
tx_hex = tx_res['hex']
|
tx_hex = tx_res['hex']
|
||||||
|
|
Loading…
Add table
Reference in a new issue