Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.cpp
Show First 20 Lines • Show All 578 Lines • ▼ Show 20 Lines | std::shared_ptr<Proof> Processor::getProof(const ProofId &proofid) const { | ||||
LOCK(cs_peerManager); | LOCK(cs_peerManager); | ||||
return peerManager->getProof(proofid); | return peerManager->getProof(proofid); | ||||
} | } | ||||
std::shared_ptr<Proof> Processor::getLocalProof() const { | std::shared_ptr<Proof> Processor::getLocalProof() const { | ||||
return peerData ? peerData->proof : nullptr; | return peerData ? peerData->proof : nullptr; | ||||
} | } | ||||
Peer::Timestamp Processor::getProofTime(const ProofId &proofid) const { | std::chrono::seconds | ||||
Processor::getProofRegistrationTime(const ProofId &proofid) const { | |||||
LOCK(cs_peerManager); | LOCK(cs_peerManager); | ||||
return peerManager->getProofTime(proofid); | return peerManager->getProofRegistrationTime(proofid); | ||||
} | } | ||||
std::shared_ptr<Proof> Processor::getOrphan(const ProofId &proofid) const { | std::shared_ptr<Proof> Processor::getOrphan(const ProofId &proofid) const { | ||||
LOCK(cs_peerManager); | LOCK(cs_peerManager); | ||||
return peerManager->getOrphan(proofid); | return peerManager->getOrphan(proofid); | ||||
} | } | ||||
bool Processor::startEventLoop(CScheduler &scheduler) { | bool Processor::startEventLoop(CScheduler &scheduler) { | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |