diff --git a/src/init.cpp b/src/init.cpp index 6793f9c61..cedd565c9 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -629,17 +629,10 @@ void ThreadStartWalletNotifier() if (walletBestBlockHash.has_value()) { int64_t slept{0}; - bool isReindexing{true}; auto timedOut = [&]() -> bool { MilliSleep(500); - // re-check whether we're reindexing - if (isReindexing) { - LOCK(cs_main); - pblocktree->ReadReindexing(isReindexing); - } - // once we're out of reindexing, we can start incrementing the slept counter - if (!isReindexing) { + if (!IsInitialBlockDownload(Params().GetConsensus())) { slept += 500; }