Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | public: | ||||
bool forNode(NodeId nodeid, std::function<bool(const Node &n)> func) const; | bool forNode(NodeId nodeid, std::function<bool(const Node &n)> func) const; | ||||
CPubKey getSessionPubKey() const; | CPubKey getSessionPubKey() const; | ||||
bool sendHello(CNode *pfrom) const; | bool sendHello(CNode *pfrom) const; | ||||
bool addProof(const std::shared_ptr<Proof> &proof); | 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; | ||||
Peer::Timestamp getProofTime(const ProofId &proofid) const; | std::chrono::seconds getProofRegistrationTime(const ProofId &proofid) 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; } | ||||
std::vector<avalanche::Peer> getPeers() const; | std::vector<avalanche::Peer> getPeers() const; | ||||
Show All 27 Lines |