aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-12 18:03:06 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-09 14:29:04 +0300
commitbad16aff490dcf87722fbfe202a869fb24c734e1 (patch)
tree3da2d65f68fb2151282ac219dbfd7965a13fd0bf /src/net.h
parentc29272a157d09a8125788c1b860e89b63b4cb36c (diff)
downloadbitcoin-bad16aff490dcf87722fbfe202a869fb24c734e1.tar.xz
p2p: Add CConnman::GetCurrentBlockRelayOnlyConns()
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 2b99d3bd9d..adeee1579a 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);