aboutsummaryrefslogtreecommitdiff
path: root/src/validation.cpp
diff options
context:
space:
mode:
authorMax K <[email protected]>2021-02-14 18:51:02 +0100
committerGitHub <[email protected]>2021-02-14 18:51:02 +0100
commit5887ca3ec5c93f4f13b7e086779375fc94ab6435 (patch)
tree42e3843970126293a5522f91c0aba544db7f4071 /src/validation.cpp
parentMerge pull request #1731 from rnicoll/1.14-3-checkpoints (diff)
parentFixed for Qt 5 (diff)
downloaddiscoin-5887ca3ec5c93f4f13b7e086779375fc94ab6435.tar.xz
discoin-5887ca3ec5c93f4f13b7e086779375fc94ab6435.zip
Merge pull request #1655 from John-Gee/1.14.3-dev
Build on recent Linux
Diffstat (limited to 'src/validation.cpp')
-rw-r--r--src/validation.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index a30ee2ef0..629442637 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -44,6 +44,7 @@
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/join.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/math/distributions/poisson.hpp>
@@ -179,7 +180,9 @@ private:
public:
MemPoolConflictRemovalTracker(CTxMemPool &_pool) : pool(_pool) {
- pool.NotifyEntryRemoved.connect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, this, _1, _2));
+ pool.NotifyEntryRemoved.connect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved,
+ this, boost::placeholders::_1,
+ boost::placeholders::_2));
}
void NotifyEntryRemoved(CTransactionRef txRemoved, MemPoolRemovalReason reason) {
@@ -189,7 +192,9 @@ public:
}
~MemPoolConflictRemovalTracker() {
- pool.NotifyEntryRemoved.disconnect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved, this, _1, _2));
+ pool.NotifyEntryRemoved.disconnect(boost::bind(&MemPoolConflictRemovalTracker::NotifyEntryRemoved,
+ this, boost::placeholders::_1,
+ boost::placeholders::_2));
for (const auto& tx : conflictedTxs) {
GetMainSignals().SyncTransaction(*tx, NULL, CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK);
}