@@ -2153,11 +2153,10 @@ static int64_t nTimeChainState = 0;
21532153static int64_t nTimePostConnect = 0 ;
21542154
21552155/* *
2156- * Used to track conflicted transactions removed from mempool and transactions
2157- * applied to the UTXO state as a part of a single ActivateBestChainStep call.
2156+ * Used to track blocks whose transactions were applied to the UTXO state as a
2157+ * part of a single ActivateBestChainStep call.
21582158 */
21592159struct ConnectTrace {
2160- std::vector<CTransactionRef> txConflicted;
21612160 std::vector<std::pair<CBlockIndex*, std::shared_ptr<const CBlock> > > blocksConnected;
21622161};
21632162
@@ -2208,7 +2207,7 @@ bool static ConnectTip(CValidationState& state, const CChainParams& chainparams,
22082207 int64_t nTime5 = GetTimeMicros (); nTimeChainState += nTime5 - nTime4;
22092208 LogPrint (" bench" , " - Writing chainstate: %.2fms [%.2fs]\n " , (nTime5 - nTime4) * 0.001 , nTimeChainState * 0.000001 );
22102209 // Remove conflicting transactions from the mempool.;
2211- mempool.removeForBlock (blockConnecting.vtx , pindexNew->nHeight , &connectTrace. txConflicted , !IsInitialBlockDownload ());
2210+ mempool.removeForBlock (blockConnecting.vtx , pindexNew->nHeight , !IsInitialBlockDownload ());
22122211 // Update chainActive & related variables.
22132212 UpdateTip (pindexNew, chainparams);
22142213
@@ -2433,11 +2432,6 @@ bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams,
24332432
24342433 // throw all transactions though the signal-interface
24352434 // while _not_ holding the cs_main lock
2436- for (const auto & tx : connectTrace.txConflicted )
2437- {
2438- GetMainSignals ().SyncTransaction (*tx, pindexNewTip, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK);
2439- }
2440- // ... and about transactions that got confirmed:
24412435 for (const auto & pair : connectTrace.blocksConnected ) {
24422436 assert (pair.second );
24432437 const CBlock& block = *(pair.second );
0 commit comments