Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,270 Lines • ▼ Show 20 Lines | |||||
* throw it away and make a new one. | * throw it away and make a new one. | ||||
*/ | */ | ||||
class ConnectTrace { | class ConnectTrace { | ||||
private: | private: | ||||
std::vector<PerBlockConnectTrace> blocksConnected; | std::vector<PerBlockConnectTrace> blocksConnected; | ||||
CTxMemPool &pool; | CTxMemPool &pool; | ||||
public: | public: | ||||
ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) { | explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) { | ||||
pool.NotifyEntryRemoved.connect( | pool.NotifyEntryRemoved.connect( | ||||
boost::bind(&ConnectTrace::NotifyEntryRemoved, this, _1, _2)); | boost::bind(&ConnectTrace::NotifyEntryRemoved, this, _1, _2)); | ||||
} | } | ||||
~ConnectTrace() { | ~ConnectTrace() { | ||||
pool.NotifyEntryRemoved.disconnect( | pool.NotifyEntryRemoved.disconnect( | ||||
boost::bind(&ConnectTrace::NotifyEntryRemoved, this, _1, _2)); | boost::bind(&ConnectTrace::NotifyEntryRemoved, this, _1, _2)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,236 Lines • Show Last 20 Lines |