@@ -2505,22 +2505,12 @@ static int64_t nTimePostConnect = 0;
2505
2505
struct PerBlockConnectTrace {
2506
2506
CBlockIndex* pindex = nullptr ;
2507
2507
std::shared_ptr<const CBlock> pblock;
2508
- std::shared_ptr<std::vector<CTransactionRef>> conflictedTxs;
2509
- PerBlockConnectTrace () : conflictedTxs(std::make_shared<std::vector<CTransactionRef>>()) {}
2508
+ PerBlockConnectTrace () {}
2510
2509
};
2511
2510
/* *
2512
2511
* Used to track blocks whose transactions were applied to the UTXO state as a
2513
2512
* part of a single ActivateBestChainStep call.
2514
2513
*
2515
- * This class also tracks transactions that are removed from the mempool as
2516
- * conflicts (per block) and can be used to pass all those transactions
2517
- * through SyncTransaction.
2518
- *
2519
- * This class assumes (and asserts) that the conflicted transactions for a given
2520
- * block are added via mempool callbacks prior to the BlockConnected() associated
2521
- * with those transactions. If any transactions are marked conflicted, it is
2522
- * assumed that an associated block will always be added.
2523
- *
2524
2514
* This class is single-use, once you call GetBlocksConnected() you have to throw
2525
2515
* it away and make a new one.
2526
2516
*/
@@ -2551,16 +2541,12 @@ class ConnectTrace {
2551
2541
// one waiting for the transactions from the next block. We pop
2552
2542
// the last entry here to make sure the list we return is sane.
2553
2543
assert (!blocksConnected.back ().pindex );
2554
- assert (blocksConnected.back ().conflictedTxs ->empty ());
2555
2544
blocksConnected.pop_back ();
2556
2545
return blocksConnected;
2557
2546
}
2558
2547
2559
2548
void NotifyEntryRemoved (CTransactionRef txRemoved, MemPoolRemovalReason reason) {
2560
2549
assert (!blocksConnected.back ().pindex );
2561
- if (reason == MemPoolRemovalReason::CONFLICT) {
2562
- blocksConnected.back ().conflictedTxs ->emplace_back (std::move (txRemoved));
2563
- }
2564
2550
}
2565
2551
};
2566
2552
0 commit comments