@@ -191,9 +191,7 @@ def test_mid_package_replacement(self):
191
191
current_info = node .getmempoolinfo ()
192
192
mempoolmin_feerate = current_info ["mempoolminfee" ]
193
193
194
- # Mempool transaction which is evicted due to being at the "bottom" of the mempool when the
195
- # mempool overflows and evicts by descendant score. It's important that the eviction doesn't
196
- # happen in the middle of package evaluation, as it can invalidate the coins cache.
194
+ # Mempool transaction is replaced by a package transaction.
197
195
double_spent_utxo = self .wallet .get_utxo (confirmed_only = True )
198
196
replaced_tx = self .wallet .send_self_transfer (
199
197
from_node = node ,
@@ -205,8 +203,8 @@ def test_mid_package_replacement(self):
205
203
assert replaced_tx ["txid" ] in node .getrawmempool ()
206
204
207
205
# This parent spends the above mempool transaction that exists when its inputs are first
208
- # looked up, but disappears later . It is rejected for being too low fee (but eligible for
209
- # reconsideration), and its inputs are cached. When the mempool transaction is evicted , its
206
+ # looked up, but will disappear if the replacement occurs . It is rejected for being too low fee (but eligible for
207
+ # reconsideration), and its inputs are cached. When the mempool transaction is replaced , its
210
208
# coin is no longer available, but the cache could still contain the tx.
211
209
cpfp_parent = self .wallet .create_self_transfer (
212
210
utxo_to_spend = replaced_tx ["new_utxo" ],
0 commit comments