Browse Source

Auto rescan if note witnesses are off

pull/4/head
Michael Toutonghi 6 years ago
parent
commit
a5d8fff5e5
  1. 2
      src/init.cpp
  2. 3
      src/main.cpp

2
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);

3
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;
}

Loading…
Cancel
Save