Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 282 Lines • ▼ Show 20 Lines | public: | ||||
template <typename Callable> auto withPeerManager(Callable &&func) const { | template <typename Callable> auto withPeerManager(Callable &&func) const { | ||||
LOCK(cs_peerManager); | LOCK(cs_peerManager); | ||||
return func(*peerManager); | return func(*peerManager); | ||||
} | } | ||||
CPubKey getSessionPubKey() const; | CPubKey getSessionPubKey() const; | ||||
bool sendHello(CNode *pfrom) const; | bool sendHello(CNode *pfrom) const; | ||||
bool addProof(const std::shared_ptr<Proof> &proof); | |||||
std::shared_ptr<Proof> getProof(const ProofId &proofid) const; | std::shared_ptr<Proof> getProof(const ProofId &proofid) const; | ||||
std::shared_ptr<Proof> getLocalProof() const; | std::shared_ptr<Proof> getLocalProof() const; | ||||
std::shared_ptr<Proof> getOrphan(const ProofId &proofid) const; | std::shared_ptr<Proof> getOrphan(const ProofId &proofid) const; | ||||
/* | /* | ||||
* Return whether the avalanche service flag should be set. | * Return whether the avalanche service flag should be set. | ||||
*/ | */ | ||||
bool isAvalancheServiceAvailable() { return !!peerData; } | bool isAvalancheServiceAvailable() { return !!peerData; } | ||||
Show All 22 Lines |