Skip to content

Commit 5cc619f

Browse files
jnewberyfurszy
authored andcommitted
[validation] Remove pool member from ConnectTrace
It's no longer used for anything.
1 parent 1e453b7 commit 5cc619f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/validation.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,12 +2023,9 @@ struct PerBlockConnectTrace {
20232023
class ConnectTrace {
20242024
private:
20252025
std::vector<PerBlockConnectTrace> blocksConnected;
2026-
CTxMemPool &pool;
20272026

20282027
public:
2029-
ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) {}
2030-
2031-
~ConnectTrace() {}
2028+
ConnectTrace() : blocksConnected(1) {}
20322029

20332030
void BlockConnected(CBlockIndex* pindex, std::shared_ptr<const CBlock> pblock) {
20342031
assert(!blocksConnected.back().pindex);
@@ -2330,7 +2327,7 @@ bool ActivateBestChain(CValidationState& state, std::shared_ptr<const CBlock> pb
23302327
do {
23312328
// We absolutely may not unlock cs_main until we've made forward progress
23322329
// (with the exception of shutdown due to hardware issues, low disk space, etc).
2333-
ConnectTrace connectTrace(mempool); // Destructed before cs_main is unlocked
2330+
ConnectTrace connectTrace; // Destructed before cs_main is unlocked
23342331

23352332
if (pindexMostWork == nullptr) {
23362333
pindexMostWork = FindMostWorkChain();

0 commit comments

Comments
 (0)