From 714438af44ebbebe390362e7314e552c2ec24265 Mon Sep 17 00:00:00 2001 From: Pasta Date: Mon, 16 Sep 2019 14:14:43 -0500 Subject: [PATCH] remove rewinding blocks Signed-off-by: Pasta --- src/init.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index 81962bd61e..4e2aad6705 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1834,17 +1834,6 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) assert(chainActive.Tip() != NULL); } - if (!fReindex) { - // Note that RewindBlockIndex MUST run even if we're about to -reindex-chainstate. - // It both disconnects blocks based on chainActive, and drops block data in - // mapBlockIndex based on lack of available witness data. - uiInterface.InitMessage(_("Rewinding blocks...")); - if (!RewindBlockIndex(chainparams)) { - strLoadError = _("Unable to rewind the database to a pre-fork state. You will need to redownload the blockchain"); - break; - } - } - if (!fReindex && !fReindexChainState) { uiInterface.InitMessage(_("Verifying blocks...")); if (fHavePruned && gArgs.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) {