Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | bool registerVotes(NodeId nodeid, const Response &response, | ||||
std::vector<BlockUpdate> &updates); | std::vector<BlockUpdate> &updates); | ||||
bool addNode(NodeId nodeid, const Delegation &delegation); | bool addNode(NodeId nodeid, const Delegation &delegation); | ||||
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; | ||||
/** | |||||
* Build and return the challenge whose signature we expect a peer to | |||||
* include in his AVAHELLO message. | |||||
*/ | |||||
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; | 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. | ||||
Show All 31 Lines |