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

Function IsLimitedPeer

src/net_processing.cpp:1171–1175  ·  view source on GitHub ↗

Whether this peer can only serve limited recent blocks (e.g. because * it prunes old blocks) */

Source from the content-addressed store, hash-verified

1169/** Whether this peer can only serve limited recent blocks (e.g. because
1170 * it prunes old blocks) */
1171static bool IsLimitedPeer(const Peer& peer)
1172{
1173 return (!(peer.m_their_services & NODE_NETWORK) &&
1174 (peer.m_their_services & NODE_NETWORK_LIMITED));
1175}
1176
1177/** Whether this peer can serve us witness data */
1178static bool CanServeWitnesses(const Peer& peer)

Callers 2

FindNextBlocksMethod · 0.85
SendMessagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected