Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 292 Lines • ▼ Show 20 Lines | public: | ||||
* include in his AVAHELLO message. | * include in his AVAHELLO message. | ||||
*/ | */ | ||||
uint256 buildRemoteSighash(CNode *pfrom) const; | uint256 buildRemoteSighash(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; | Peer::Timestamp getProofTime(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; | ||||
std::vector<NodeId> getNodeIdsForPeer(PeerId peerId) const; | std::vector<NodeId> getNodeIdsForPeer(PeerId peerId) const; | ||||
Show All 22 Lines |