mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-01 00:10:44 +01:00
[functional test] prioritisation is not removed during replacement and expiry
This commit is contained in:
@@ -40,6 +40,10 @@ class MempoolExpiryTest(BitcoinTestFramework):
|
||||
parent_utxo = self.wallet.get_utxo(txid=parent_txid)
|
||||
independent_utxo = self.wallet.get_utxo()
|
||||
|
||||
# Add prioritisation to this transaction to check that it persists after the expiry
|
||||
node.prioritisetransaction(parent_txid, 0, COIN)
|
||||
assert_equal(node.getprioritisedtransactions()[parent_txid], { "fee_delta" : COIN, "in_mempool" : True})
|
||||
|
||||
# Ensure the transactions we send to trigger the mempool check spend utxos that are independent of
|
||||
# the transactions being tested for expiration.
|
||||
trigger_utxo1 = self.wallet.get_utxo()
|
||||
@@ -82,6 +86,9 @@ class MempoolExpiryTest(BitcoinTestFramework):
|
||||
assert_raises_rpc_error(-5, 'Transaction not in mempool',
|
||||
node.getmempoolentry, parent_txid)
|
||||
|
||||
# Prioritisation does not disappear when transaction expires
|
||||
assert_equal(node.getprioritisedtransactions()[parent_txid], { "fee_delta" : COIN, "in_mempool" : False})
|
||||
|
||||
# The child transaction should be removed from the mempool as well.
|
||||
self.log.info('Test child tx is evicted as well.')
|
||||
assert_raises_rpc_error(-5, 'Transaction not in mempool',
|
||||
|
||||
Reference in New Issue
Block a user