Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.cpp
Show First 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | if (conflicting_peerids.size() > 0) { | ||||
// We need to delete that one. | // We need to delete that one. | ||||
if (it->second == peerid) { | if (it->second == peerid) { | ||||
utxos.erase(it); | utxos.erase(it); | ||||
} | } | ||||
} | } | ||||
for (auto &cb : conflictingProofHandlers) { | for (auto &cb : conflictingProofHandlers) { | ||||
cb->onConflictingProof(proof, accepted); | cb->onConflictingProof(proof, conflicting_peerids, accepted); | ||||
} | } | ||||
return peers.end(); | return peers.end(); | ||||
} | } | ||||
// We have no peer for this proof, time to create it. | // We have no peer for this proof, time to create it. | ||||
auto inserted = peers.emplace(peerid, proof); | auto inserted = peers.emplace(peerid, proof); | ||||
assert(inserted.second); | assert(inserted.second); | ||||
▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines |