aboutsummaryrefslogtreecommitdiff
path: root/src/qt/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-11-22 16:24:38 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-12-05 14:22:05 -0500
commitfa660d65d7cc401ad5bbfdc076a074de19a79329 (patch)
treee66d5323bd671bbfdec809b28775d8bf5d56ba8f /src/qt/test
parentfacbaf092f1ab298943206603cff6e6e3d30d452 (diff)
node: Use mempool from node context instead of global
Diffstat (limited to 'src/qt/test')
-rw-r--r--src/qt/test/wallettests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qt/test/wallettests.cpp b/src/qt/test/wallettests.cpp
index 980de711db..7139042041 100644
--- a/src/qt/test/wallettests.cpp
+++ b/src/qt/test/wallettests.cpp
@@ -134,6 +134,7 @@ void TestGUI(interfaces::Node& node)
test.CreateAndProcessBlock({}, GetScriptForRawPubKey(test.coinbaseKey.GetPubKey()));
}
node.context()->connman = std::move(test.m_node.connman);
+ node.context()->mempool = std::move(test.m_node.mempool);
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(node.context()->chain.get(), WalletLocation(), WalletDatabase::CreateMock());
bool firstRun;
wallet->LoadWallet(firstRun);