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

Function ConnectionTypeAsString

src/net.cpp:578–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576}
577
578std::string ConnectionTypeAsString(ConnectionType conn_type)
579{
580 switch (conn_type) {
581 case ConnectionType::INBOUND:
582 return "inbound";
583 case ConnectionType::MANUAL:
584 return "manual";
585 case ConnectionType::FEELER:
586 return "feeler";
587 case ConnectionType::OUTBOUND_FULL_RELAY:
588 return "outbound-full-relay";
589 case ConnectionType::BLOCK_RELAY:
590 return "block-relay-only";
591 case ConnectionType::ADDR_FETCH:
592 return "addr-fetch";
593 } // no default case, so the compiler can warn about missing cases
594
595 assert(false);
596}
597
598CService CNode::GetAddrLocal() const
599{

Callers 2

getpeerinfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected