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 5,106 Lines • ▼ Show 20 Lines | if (msg_type == NetMsgType::AVARESPONSE) { | ||||
LogPrintf("failed to activate chain (%s)\n", state.ToString()); | LogPrintf("failed to activate chain (%s)\n", state.ToString()); | ||||
} | } | ||||
} | } | ||||
return; | return; | ||||
} | } | ||||
if (msg_type == NetMsgType::AVAPROOF) { | if (msg_type == NetMsgType::AVAPROOF) { | ||||
auto proof = std::make_shared<avalanche::Proof>(); | auto proof = RCUPtr<avalanche::Proof>::make(); | ||||
vRecv >> *proof; | vRecv >> *proof; | ||||
const avalanche::ProofId &proofid = proof->getId(); | const avalanche::ProofId &proofid = proof->getId(); | ||||
pfrom.AddKnownProof(proofid); | pfrom.AddKnownProof(proofid); | ||||
const NodeId nodeid = pfrom.GetId(); | const NodeId nodeid = pfrom.GetId(); | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,736 Lines • Show Last 20 Lines |