p2p: Add CConnman::GetCurrentBlockRelayOnlyConns()

This commit is contained in:
Hennadii Stepanov
2020-09-12 18:03:06 +03:00
parent c29272a157
commit bad16aff49
2 changed files with 18 additions and 0 deletions

View File

@@ -460,6 +460,11 @@ private:
void RecordBytesRecv(uint64_t bytes);
void RecordBytesSent(uint64_t bytes);
/**
* Return vector of current BLOCK_RELAY peers.
*/
std::vector<CAddress> GetCurrentBlockRelayOnlyConns() const;
// Whether the node should be passed out in ForEach* callbacks
static bool NodeFullyConnected(const CNode* pnode);