Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.cpp
Show First 20 Lines • Show All 558 Lines • ▼ Show 20 Lines | connman->PushMessage(pfrom, CNetMsgMaker(pfrom->GetCommonVersion()) | ||||
Hello(peerData->delegation, sig))); | Hello(peerData->delegation, sig))); | ||||
pfrom->AddKnownProof(peerData->delegation.getProofId()); | pfrom->AddKnownProof(peerData->delegation.getProofId()); | ||||
return true; | return true; | ||||
} | } | ||||
ProofRef Processor::getLocalProof() const { | ProofRef Processor::getLocalProof() const { | ||||
return peerData ? peerData->proof : nullptr; | return peerData ? peerData->proof : ProofRef(); | ||||
} | } | ||||
bool Processor::startEventLoop(CScheduler &scheduler) { | bool Processor::startEventLoop(CScheduler &scheduler) { | ||||
return eventLoop.startEventLoop( | return eventLoop.startEventLoop( | ||||
scheduler, [this]() { this->runEventLoop(); }, AVALANCHE_TIME_STEP); | scheduler, [this]() { this->runEventLoop(); }, AVALANCHE_TIME_STEP); | ||||
} | } | ||||
bool Processor::stopEventLoop() { | bool Processor::stopEventLoop() { | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |