Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | public: | ||||
bool sendHello(CNode *pfrom) const; | bool sendHello(CNode *pfrom) const; | ||||
/** | /** | ||||
* Build and return the challenge whose signature we expect a peer to | * Build and return the challenge whose signature we expect a peer to | ||||
* include in his AVAHELLO message. | * include in his AVAHELLO message. | ||||
*/ | */ | ||||
uint256 buildRemoteSighash(CNode *pfrom) const; | uint256 buildRemoteSighash(CNode *pfrom) const; | ||||
bool addProof(const Proof &proof); | |||||
deadalnix: I sense some inconsistencies in this API. | |||||
std::shared_ptr<Proof> getProof(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 26 Lines |
I sense some inconsistencies in this API.