Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche.cpp
Show First 20 Lines • Show All 221 Lines • ▼ Show 20 Lines | std::map<CBlockIndex *, AvalancheVote> responseIndex; | ||||
// This vote did not provide any extra information, move on. | // This vote did not provide any extra information, move on. | ||||
continue; | continue; | ||||
} | } | ||||
if (!vr.hasFinalized()) { | if (!vr.hasFinalized()) { | ||||
// This item has note been finalized, so we have nothing more to | // This item has note been finalized, so we have nothing more to | ||||
// do. | // do. | ||||
updates.emplace_back( | updates.emplace_back( | ||||
pindex, | pindex, vr.isAccepted() | ||||
vr.isAccepted() ? AvalancheBlockUpdate::Status::Accepted | ? AvalancheBlockUpdate::Status::Accepted | ||||
: AvalancheBlockUpdate::Status::Rejected); | : AvalancheBlockUpdate::Status::Rejected); | ||||
continue; | continue; | ||||
} | } | ||||
// We just finalized a vote. If it is valid, then let the caller | // We just finalized a vote. If it is valid, then let the caller | ||||
// know. Either way, remove the item from the map. | // know. Either way, remove the item from the map. | ||||
updates.emplace_back(pindex, | updates.emplace_back(pindex, | ||||
vr.isAccepted() | vr.isAccepted() | ||||
? AvalancheBlockUpdate::Status::Finalized | ? AvalancheBlockUpdate::Status::Finalized | ||||
▲ Show 20 Lines • Show All 178 Lines • Show Last 20 Lines |