aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2019-11-11 10:50:21 -0500
committerJohn Newbery <[email protected]>2020-03-11 18:38:33 -0400
commit969b65f3f527631ede1a31c7855151e5c5d91f8f (patch)
treedf43861b428568cfc204524db7ccfe5dbe951be6 /src
parent[validation] Remove conflictedTxs from PerBlockConnectTrace (diff)
downloaddiscoin-969b65f3f527631ede1a31c7855151e5c5d91f8f.tar.xz
discoin-969b65f3f527631ede1a31c7855151e5c5d91f8f.zip
[validation] Remove NotifyEntryRemoved callback from ConnectTrace
ConnectTrace used to subscribe to the mempool's NotifyEntryRemoved callback to be notified of transactions removed for conflict. Since PerBlockConnectTrace no longer tracks conflicted transactions, ConnectTrace no longer requires these notifications.
Diffstat (limited to 'src')
-rw-r--r--src/validation.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index c5318293b..1f1585041 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -2518,12 +2518,9 @@ class ConnectTrace {
private:
std::vector<PerBlockConnectTrace> blocksConnected;
CTxMemPool &pool;
- boost::signals2::scoped_connection m_connNotifyEntryRemoved;
public:
- explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) {
- m_connNotifyEntryRemoved = pool.NotifyEntryRemoved.connect(std::bind(&ConnectTrace::NotifyEntryRemoved, this, std::placeholders::_1, std::placeholders::_2));
- }
+ explicit ConnectTrace(CTxMemPool &_pool) : blocksConnected(1), pool(_pool) {}
void BlockConnected(CBlockIndex* pindex, std::shared_ptr<const CBlock> pblock) {
assert(!blocksConnected.back().pindex);
@@ -2544,10 +2541,6 @@ public:
blocksConnected.pop_back();
return blocksConnected;
}
-
- void NotifyEntryRemoved(CTransactionRef txRemoved, MemPoolRemovalReason reason) {
- assert(!blocksConnected.back().pindex);
- }
};
/**