Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,555 Lines • ▼ Show 20 Lines | do { | ||||
if (fInvalidChain || fParkedChain) { | if (fInvalidChain || fParkedChain) { | ||||
// We discovered a new chain tip that is either parked or | // We discovered a new chain tip that is either parked or | ||||
// invalid, we may want to warn. | // invalid, we may want to warn. | ||||
CheckForkWarningConditionsOnNewFork(pindexNew); | CheckForkWarningConditionsOnNewFork(pindexNew); | ||||
} | } | ||||
} | } | ||||
if (g_avalanche && pindexNew->nStatus.isOnParkedChain() && | if (g_avalanche && | ||||
gArgs.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED)) { | gArgs.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED)) { | ||||
g_avalanche->addBlockToReconcile(pindexNew); | g_avalanche->addBlockToReconcile(pindexNew); | ||||
} | } | ||||
// We found a candidate that has valid ancestors. This is our guy. | // We found a candidate that has valid ancestors. This is our guy. | ||||
if (hasValidAncestor) { | if (hasValidAncestor) { | ||||
return pindexNew; | return pindexNew; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,046 Lines • Show Last 20 Lines |