refactor: move first run detection to client code

This commit is contained in:
Ivan Metlushko
2020-12-18 17:45:11 +01:00
parent 2fa3f30050
commit e2a47ce085
10 changed files with 16 additions and 24 deletions

View File

@@ -483,8 +483,7 @@ public:
LOCK2(wallet->cs_wallet, ::cs_main);
wallet->SetLastBlockProcessed(::ChainActive().Height(), ::ChainActive().Tip()->GetBlockHash());
}
bool firstRun;
wallet->LoadWallet(firstRun);
wallet->LoadWallet();
AddKey(*wallet, coinbaseKey);
WalletRescanReserver reserver(*wallet);
reserver.reserve();