diff --git a/src/node/chainstate.cpp b/src/node/chainstate.cpp index 3ee557ae62..10b6e52c78 100644 --- a/src/node/chainstate.cpp +++ b/src/node/chainstate.cpp @@ -155,14 +155,12 @@ static ChainstateLoadResult CompleteChainstateInitialization( } } - if (!options.wipe_block_tree_db) { - auto chainstates{chainman.GetAll()}; - if (std::any_of(chainstates.begin(), chainstates.end(), - [](const Chainstate* cs) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { return cs->NeedsRedownload(); })) { - return {ChainstateLoadStatus::FAILURE, strprintf(_("Witness data for blocks after height %d requires validation. Please restart with -reindex."), - chainman.GetConsensus().SegwitHeight)}; - }; - } + auto chainstates{chainman.GetAll()}; + if (std::any_of(chainstates.begin(), chainstates.end(), + [](const Chainstate* cs) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { return cs->NeedsRedownload(); })) { + return {ChainstateLoadStatus::FAILURE, strprintf(_("Witness data for blocks after height %d requires validation. Please restart with -reindex."), + chainman.GetConsensus().SegwitHeight)}; + }; // Now that chainstates are loaded and we're able to flush to // disk, rebalance the coins caches to desired levels based