MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / CanServeBlocks

Function CanServeBlocks

src/net_processing.cpp:1765–1767  ·  view source on GitHub ↗

Whether this peer can serve us blocks. */

Source from the content-addressed store, hash-verified

1763}
1764/** Whether this peer can serve us blocks. */
1765static bool CanServeBlocks(const Peer &peer) {
1766 return peer.m_their_services & (NODE_NETWORK | NODE_NETWORK_LIMITED);
1767}
1768
1769/**
1770 * Whether this peer can only serve limited recent blocks (e.g. because

Callers 2

ProcessMessageMethod · 0.85
SendMessagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected