Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.cpp
Show First 20 Lines • Show All 521 Lines • ▼ Show 20 Lines | if (getProof(proofid)) { | ||||
m_unbroadcast_proofids.insert(proofid); | m_unbroadcast_proofids.insert(proofid); | ||||
} | } | ||||
} | } | ||||
void PeerManager::removeUnbroadcastProof(const ProofId &proofid) { | void PeerManager::removeUnbroadcastProof(const ProofId &proofid) { | ||||
m_unbroadcast_proofids.erase(proofid); | m_unbroadcast_proofids.erase(proofid); | ||||
} | } | ||||
std::vector<Node> PeerManager::nodesForPeer(const PeerId &peerId) const { | |||||
const auto [first, last] = | |||||
nodes.get<next_request_time>().equal_range(peerId); | |||||
return std::vector<Node>(first, last); | |||||
} | |||||
} // namespace avalanche | } // namespace avalanche |