diff --git a/src/init.cpp b/src/init.cpp index 9d22a1b63..6357adc86 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1849,6 +1849,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) LogPrintf("mapBlockIndex.size() = %u\n", mapBlockIndex.size()); LogPrintf("nBestHeight = %d\n", chainActive.Height()); #ifdef ENABLE_WALLET + RescanWallets(); + LogPrintf("setKeyPool.size() = %u\n", pwalletMain ? pwalletMain->setKeyPool.size() : 0); LogPrintf("mapWallet.size() = %u\n", pwalletMain ? pwalletMain->mapWallet.size() : 0); LogPrintf("mapAddressBook.size() = %u\n", pwalletMain ? pwalletMain->mapAddressBook.size() : 0); diff --git a/src/main.cpp b/src/main.cpp index f80baa14c..f9dbbe2d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4049,9 +4049,6 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo else CheckForkWarningConditions(); - // if we need to, rescan wallets - RescanWallets(); - return true; }