MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CanServeBlocks

Function CanServeBlocks

src/net_processing.cpp:1164–1167  ·  view source on GitHub ↗

Whether this peer can serve us blocks. */

Source from the content-addressed store, hash-verified

1162
1163/** Whether this peer can serve us blocks. */
1164static bool CanServeBlocks(const Peer& peer)
1165{
1166 return peer.m_their_services & (NODE_NETWORK|NODE_NETWORK_LIMITED);
1167}
1168
1169/** Whether this peer can only serve limited recent blocks (e.g. because
1170 * it prunes old blocks) */

Callers 2

ProcessMessageMethod · 0.85
SendMessagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected