aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2019-11-15 15:33:27 -0500
committerJohn Newbery <[email protected]>2020-03-11 18:38:33 -0400
commit2dd561f36124972d2364f941de9c3417c65f05b6 (patch)
tree86da7865a05b2717810e76d0659f3b565a0b613b /src
parent[validation] Remove NotifyEntryRemoved callback from ConnectTrace (diff)
downloaddiscoin-2dd561f36124972d2364f941de9c3417c65f05b6.tar.xz
discoin-2dd561f36124972d2364f941de9c3417c65f05b6.zip
[validation] Remove pool member from ConnectTrace
It's no longer used for anything.
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 1f1585041..6d6ba8056 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2517,10 +2517,9 @@ struct PerBlockConnectTrace {
class ConnectTrace {
private:
std::vector<PerBlockConnectTrace> blocksConnected;
- CTxMemPool &pool;
public:
- explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) {}
+ explicit ConnectTrace() : blocksConnected(1) {}
void BlockConnected(CBlockIndex* pindex, std::shared_ptr<const CBlock> pblock) {
assert(!blocksConnected.back().pindex);
@@ -2833,7 +2832,7 @@ bool CChainState::ActivateBestChain(BlockValidationState &state, const CChainPar
do {
// We absolutely may not unlock cs_main until we've made forward progress
// (with the exception of shutdown due to hardware issues, low disk space, etc).
- ConnectTrace connectTrace(mempool); // Destructed before cs_main is unlocked
+ ConnectTrace connectTrace; // Destructed before cs_main is unlocked
if (pindexMostWork == nullptr) {
pindexMostWork = FindMostWorkChain();