MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsOutboundOrBlockRelayConn

Method IsOutboundOrBlockRelayConn

src/net.h:488–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 std::atomic_bool fPauseSend{false};
487
488 bool IsOutboundOrBlockRelayConn() const {
489 switch (m_conn_type) {
490 case ConnectionType::OUTBOUND_FULL_RELAY:
491 case ConnectionType::BLOCK_RELAY:
492 return true;
493 case ConnectionType::INBOUND:
494 case ConnectionType::MANUAL:
495 case ConnectionType::ADDR_FETCH:
496 case ConnectionType::FEELER:
497 return false;
498 } // no default case, so the compiler can warn about missing cases
499
500 assert(false);
501 }
502
503 bool IsFullOutboundConn() const {
504 return m_conn_type == ConnectionType::OUTBOUND_FULL_RELAY;

Callers 2

ProcessHeadersMessageMethod · 0.80
ConsiderEvictionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected