diff --git a/.changes/fixed/3275.md b/.changes/fixed/3275.md new file mode 100644 index 00000000000..30edc35c336 --- /dev/null +++ b/.changes/fixed/3275.md @@ -0,0 +1 @@ +Rollback stale preconfirmations in the mempool when the canonical block at that height omits the preconfirmed transactions, restoring spent inputs and removing dependent transactions. diff --git a/crates/services/txpool_v2/src/pool.rs b/crates/services/txpool_v2/src/pool.rs index 66f67b3815d..ec8caad092c 100644 --- a/crates/services/txpool_v2/src/pool.rs +++ b/crates/services/txpool_v2/src/pool.rs @@ -489,9 +489,7 @@ where else { // Invariant violation. Panic in tests, log in production. debug_assert!(false, "Storage data not found for the transaction"); - tracing::warn!( - "Storage data not found for the transaction during `remove_transaction`." - ); + tracing::warn!("Storage data not found for the transaction during."); continue }; self.extracted_outputs @@ -516,10 +514,7 @@ where false, "Dependent storage data not found for the transaction" ); - tracing::warn!( - "Dependent storage data not found for \ - the transaction during `remove_transaction`." - ); + tracing::warn!("Dependent storage data not found for the transaction."); continue };