aboutsummaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2020-07-19 20:30:46 +0200
committerMarcoFalke <[email protected]>2020-09-05 16:24:56 +0200
commitfafb381af8279b2d2ca768df0bf68d7eb036a2f9 (patch)
tree35e45709d385b239d7470aca4bec066e68ee72f9 /src/node
parentRemove mempool global from p2p (diff)
downloaddiscoin-fafb381af8279b2d2ca768df0bf68d7eb036a2f9.tar.xz
discoin-fafb381af8279b2d2ca768df0bf68d7eb036a2f9.zip
Remove mempool global
Diffstat (limited to 'src/node')
-rw-r--r--src/node/context.cpp1
-rw-r--r--src/node/context.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/node/context.cpp b/src/node/context.cpp
index 0238aab0d..49d0c3723 100644
--- a/src/node/context.cpp
+++ b/src/node/context.cpp
@@ -9,6 +9,7 @@
#include <net.h>
#include <net_processing.h>
#include <scheduler.h>
+#include <txmempool.h>
NodeContext::NodeContext() {}
NodeContext::~NodeContext() {}
diff --git a/src/node/context.h b/src/node/context.h
index 793c9dfc3..d9d075095 100644
--- a/src/node/context.h
+++ b/src/node/context.h
@@ -35,7 +35,7 @@ class WalletClient;
//! be used without pulling in unwanted dependencies or functionality.
struct NodeContext {
std::unique_ptr<CConnman> connman;
- CTxMemPool* mempool{nullptr}; // Currently a raw pointer because the memory is not managed by this struct
+ std::unique_ptr<CTxMemPool> mempool;
std::unique_ptr<PeerLogicValidation> peer_logic;
ChainstateManager* chainman{nullptr}; // Currently a raw pointer because the memory is not managed by this struct
std::unique_ptr<BanMan> banman;