MCPcopy Create free account
hub / github.com/ElementsProject/lightning / channel_err

Function channel_err

lightningd/channel.c:949–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947}
948
949static void channel_err(struct channel *channel, const char *why)
950{
951 log_info(channel->log, "Peer transient failure in %s: %s",
952 channel_state_name(channel), why);
953
954#if DEVELOPER
955 if (dev_disconnect_permanent(channel->peer->ld)) {
956 channel_fail_permanent(channel,
957 REASON_LOCAL,
958 "dev_disconnect permfail");
959 return;
960 }
961#endif
962 channel_set_owner(channel, NULL);
963}
964
965void channel_fail_transient_delayreconnect(struct channel *channel, const char *fmt, ...)
966{

Callers 2

channel_fail_transientFunction · 0.85

Calls 5

log_infoClass · 0.85
channel_set_ownerFunction · 0.85
channel_state_nameFunction · 0.70
dev_disconnect_permanentFunction · 0.70
channel_fail_permanentFunction · 0.70

Tested by

no test coverage detected