Changeset View
Changeset View
Standalone View
Standalone View
src/validation.cpp
Show First 20 Lines • Show All 2,678 Lines • ▼ Show 20 Lines | do { | ||||
LogPrintf("Mark block %s invalid because it forks prior to the " | LogPrintf("Mark block %s invalid because it forks prior to the " | ||||
"finalization point %d.\n", | "finalization point %d.\n", | ||||
pindexNew->GetBlockHash().ToString(), | pindexNew->GetBlockHash().ToString(), | ||||
m_finalizedBlockIndex->nHeight); | m_finalizedBlockIndex->nHeight); | ||||
pindexNew->nStatus = pindexNew->nStatus.withFailed(); | pindexNew->nStatus = pindexNew->nStatus.withFailed(); | ||||
InvalidChainFound(pindexNew); | InvalidChainFound(pindexNew); | ||||
} | } | ||||
const bool fAvalancheEnabled = | const bool fAvalancheEnabled = isAvalancheEnabled(gArgs); | ||||
gArgs.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED); | |||||
const bool fAutoUnpark = | const bool fAutoUnpark = | ||||
gArgs.GetBoolArg("-automaticunparking", !fAvalancheEnabled); | gArgs.GetBoolArg("-automaticunparking", !fAvalancheEnabled); | ||||
const CBlockIndex *pindexFork = m_chain.FindFork(pindexNew); | const CBlockIndex *pindexFork = m_chain.FindFork(pindexNew); | ||||
// Check whether all blocks on the path between the currently active | // Check whether all blocks on the path between the currently active | ||||
// chain and the candidate are valid. Just going until the active chain | // chain and the candidate are valid. Just going until the active chain | ||||
// is an optimization, as we know all blocks in it are valid already. | // is an optimization, as we know all blocks in it are valid already. | ||||
▲ Show 20 Lines • Show All 3,463 Lines • Show Last 20 Lines |