refactor: move first run detection to client code
This commit is contained in:
1 parent
2fa3f30050
commit
e2a47ce085
10 files changed
+16
-24
No files matched your search
@@ -63,8 +63,7 @@ void TestAddAddressesToSendBook(interfaces::Node& node)
|
||||
node.setContext(&test.m_node);
|
||||
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(node.context()->chain.get(), "", CreateMockWalletDatabase());
|
||||
wallet->SetupLegacyScriptPubKeyMan();
|
||||
bool firstRun;
|
||||
wallet->LoadWallet(firstRun);
|
||||
wallet->LoadWallet();
|
||||
|
||||
auto build_address = [&wallet]() {
|
||||
CKey key;
|
||||
|
||||
@@ -140,8 +140,7 @@ void TestGUI(interfaces::Node& node)
|
||||
}
|
||||
node.setContext(&test.m_node);
|
||||
std::shared_ptr<CWallet> wallet = std::make_shared<CWallet>(node.context()->chain.get(), "", CreateMockWalletDatabase());
|
||||
bool firstRun;
|
||||
wallet->LoadWallet(firstRun);
|
||||
wallet->LoadWallet();
|
||||
{
|
||||
auto spk_man = wallet->GetOrCreateLegacyScriptPubKeyMan();
|
||||
LOCK2(wallet->cs_wallet, spk_man->cs_KeyStore);
|
||||
|
||||
Reference in new issue
Block a user