| 576 | } |
| 577 | |
| 578 | std::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 | |
| 598 | CService CNode::GetAddrLocal() const |
| 599 | { |
no outgoing calls
no test coverage detected