mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
This commit is contained in:
parent
34d2a6038f
commit
a3b01dfbe5
@ -1617,9 +1617,9 @@ static DisconnectResult DisconnectBlock(const CBlock& block, CValidationState& s
|
||||
bool fDIP0003Active = VersionBitsState(pindex->pprev, Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0003, versionbitscache) == THRESHOLD_ACTIVE;
|
||||
bool fHasBestBlock = evoDb->VerifyBestBlock(pindex->GetBlockHash());
|
||||
|
||||
if (fDIP0003Active) {
|
||||
if (fDIP0003Active && !fHasBestBlock) {
|
||||
// Nodes that upgraded after DIP3 activation will have to reindex to ensure evodb consistency
|
||||
assert(fHasBestBlock);
|
||||
AbortNode("Found EvoDB inconsistency, you must reindex to continue");
|
||||
}
|
||||
|
||||
bool fClean = true;
|
||||
@ -1933,9 +1933,9 @@ static bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockInd
|
||||
bool fDIP0003Active = VersionBitsState(pindex->pprev, Params().GetConsensus(), Consensus::DEPLOYMENT_DIP0003, versionbitscache) == THRESHOLD_ACTIVE;
|
||||
bool fHasBestBlock = evoDb->VerifyBestBlock(pindex->pprev->GetBlockHash());
|
||||
|
||||
if (fDIP0003Active) {
|
||||
if (fDIP0003Active && !fHasBestBlock) {
|
||||
// Nodes that upgraded after DIP3 activation will have to reindex to ensure evodb consistency
|
||||
assert(fHasBestBlock);
|
||||
AbortNode("Found EvoDB inconsistency, you must reindex to continue");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user