mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
Bail out properly on Evo DB consistency check failures in ConnectBlock/DisconnectBlock (#3044)
This commit is contained in:
parent
8d89350b8a
commit
fbb49f92d0
@ -1393,6 +1393,7 @@ static DisconnectResult DisconnectBlock(const CBlock& block, CValidationState& s
|
||||
if (fDIP0003Active && !fHasBestBlock) {
|
||||
// Nodes that upgraded after DIP3 activation will have to reindex to ensure evodb consistency
|
||||
AbortNode("Found EvoDB inconsistency, you must reindex to continue");
|
||||
return DISCONNECT_FAILED;
|
||||
}
|
||||
|
||||
bool fClean = true;
|
||||
@ -1688,7 +1689,7 @@ static bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockInd
|
||||
|
||||
if (fDIP0003Active && !fHasBestBlock) {
|
||||
// Nodes that upgraded after DIP3 activation will have to reindex to ensure evodb consistency
|
||||
AbortNode("Found EvoDB inconsistency, you must reindex to continue");
|
||||
return AbortNode(state, "Found EvoDB inconsistency, you must reindex to continue");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user