Whether this peer can only serve limited recent blocks (e.g. because * it prunes old blocks) */
| 1169 | /** Whether this peer can only serve limited recent blocks (e.g. because |
| 1170 | * it prunes old blocks) */ |
| 1171 | static 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 */ |
| 1178 | static bool CanServeWitnesses(const Peer& peer) |
no outgoing calls
no test coverage detected