Skip to content

Commit 2dd561f

Browse files
committed
[validation] Remove pool member from ConnectTrace
It's no longer used for anything.
1 parent 969b65f commit 2dd561f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/validation.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2517,10 +2517,9 @@ struct PerBlockConnectTrace {
25172517
class ConnectTrace {
25182518
private:
25192519
std::vector<PerBlockConnectTrace> blocksConnected;
2520-
CTxMemPool &pool;
25212520

25222521
public:
2523-
explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) {}
2522+
explicit ConnectTrace() : blocksConnected(1) {}
25242523

25252524
void BlockConnected(CBlockIndex* pindex, std::shared_ptr<const CBlock> pblock) {
25262525
assert(!blocksConnected.back().pindex);
@@ -2833,7 +2832,7 @@ bool CChainState::ActivateBestChain(BlockValidationState &state, const CChainPar
28332832
do {
28342833
// We absolutely may not unlock cs_main until we've made forward progress
28352834
// (with the exception of shutdown due to hardware issues, low disk space, etc).
2836-
ConnectTrace connectTrace(mempool); // Destructed before cs_main is unlocked
2835+
ConnectTrace connectTrace; // Destructed before cs_main is unlocked
28372836

28382837
if (pindexMostWork == nullptr) {
28392838
pindexMostWork = FindMostWorkChain();

0 commit comments

Comments
 (0)