Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.cpp
Show First 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | SchnorrSig sig; | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
connman->PushMessage(pfrom, CNetMsgMaker(pfrom->GetCommonVersion()) | connman->PushMessage(pfrom, CNetMsgMaker(pfrom->GetCommonVersion()) | ||||
.Make(NetMsgType::AVAHELLO, | .Make(NetMsgType::AVAHELLO, | ||||
Hello(peerData->delegation, sig))); | Hello(peerData->delegation, sig))); | ||||
pfrom->AddKnownProof(peerData->delegation.getProofId()); | |||||
return true; | return true; | ||||
} | } | ||||
const Proof Processor::getProof() const { | const Proof Processor::getProof() const { | ||||
if (!peerData) { | if (!peerData) { | ||||
throw std::runtime_error("proof not set"); | throw std::runtime_error("proof not set"); | ||||
} | } | ||||
return peerData->proof; | return peerData->proof; | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |