Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.h
Show First 20 Lines • Show All 228 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Proof broadcast API. | * Proof broadcast API. | ||||
*/ | */ | ||||
void addUnbroadcastProof(const ProofId &proofid); | void addUnbroadcastProof(const ProofId &proofid); | ||||
void removeUnbroadcastProof(const ProofId &proofid); | void removeUnbroadcastProof(const ProofId &proofid); | ||||
auto getUnbroadcastProofs() const { return m_unbroadcast_proofids; } | auto getUnbroadcastProofs() const { return m_unbroadcast_proofids; } | ||||
/** For a given peer, return the nodes associated with it */ | |||||
std::vector<Node> nodesForPeer(const PeerId &) const; | |||||
Fabien: `Proof broadcast API.` is not the right section for this | |||||
/**************************************************** | /**************************************************** | ||||
* Functions which are public for testing purposes. * | * Functions which are public for testing purposes. * | ||||
****************************************************/ | ****************************************************/ | ||||
/** | /** | ||||
* Provide the PeerId associated with the given proof. If the peer does not | * Provide the PeerId associated with the given proof. If the peer does not | ||||
* exist, then it is created. | * exist, then it is created. | ||||
*/ | */ | ||||
PeerId getPeerId(const std::shared_ptr<Proof> &proof); | PeerId getPeerId(const std::shared_ptr<Proof> &proof); | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |
Proof broadcast API. is not the right section for this