mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
remove rewinding blocks
Signed-off-by: Pasta <pasta@dashboost.org>
This commit is contained in:
parent
dbd4993084
commit
714438af44
11
src/init.cpp
11
src/init.cpp
@ -1834,17 +1834,6 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
assert(chainActive.Tip() != NULL);
|
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) {
|
if (!fReindex && !fReindexChainState) {
|
||||||
uiInterface.InitMessage(_("Verifying blocks..."));
|
uiInterface.InitMessage(_("Verifying blocks..."));
|
||||||
if (fHavePruned && gArgs.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) {
|
if (fHavePruned && gArgs.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) {
|
||||||
|
Loading…
Reference in New Issue
Block a user