Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/processor.h
Show First 20 Lines • Show All 288 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* 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; | ||||
/** | /** | ||||
* Get the local proof used by this node. | * Return true if a proof was set for this node. | ||||
* | |||||
* @returns Proof for this node. | |||||
* @throws a std::runtime_error if there is no proof set for this node | |||||
*/ | */ | ||||
const Proof getProof() const; | bool hasLocalProof() const; | ||||
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; | ||||
bool startEventLoop(CScheduler &scheduler); | bool startEventLoop(CScheduler &scheduler); | ||||
bool stopEventLoop(); | bool stopEventLoop(); | ||||
private: | private: | ||||
Show All 22 Lines |