Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 6,215 Lines • ▼ Show 20 Lines | if (msg_type == NetMsgType::AVARESPONSE) { | ||||
shouldActivateBestChain = true; | shouldActivateBestChain = true; | ||||
logVoteUpdate(u, "block", pindex->GetBlockHash()); | logVoteUpdate(u, "block", pindex->GetBlockHash()); | ||||
switch (u.getStatus()) { | switch (u.getStatus()) { | ||||
case avalanche::VoteStatus::Invalid: | case avalanche::VoteStatus::Invalid: | ||||
case avalanche::VoteStatus::Rejected: { | case avalanche::VoteStatus::Rejected: { | ||||
BlockValidationState state; | BlockValidationState state; | ||||
m_chainman.ActiveChainstate().ParkBlock(config, state, | m_chainman.ActiveChainstate().ParkBlock(state, pindex); | ||||
pindex); | |||||
if (!state.IsValid()) { | if (!state.IsValid()) { | ||||
LogPrintf("ERROR: Database error: %s\n", | LogPrintf("ERROR: Database error: %s\n", | ||||
state.GetRejectReason()); | state.GetRejectReason()); | ||||
return; | return; | ||||
} | } | ||||
} break; | } break; | ||||
case avalanche::VoteStatus::Accepted: { | case avalanche::VoteStatus::Accepted: { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
▲ Show 20 Lines • Show All 2,126 Lines • Show Last 20 Lines |