node: Use mempool from node context instead of global

This commit is contained in:
MarcoFalke committed 2019-12-05 14:22:05 -05:00
1 parent facbaf092f
commit fa660d65d7
8 files changed
+16 -14

No files matched your search

+1
View File
@@ -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);