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

Function negotiation_aborted

openingd/openingd.c:108–122  ·  view source on GitHub ↗

~ If we can't agree on parameters, we fail to open the channel. * Tell lightningd why. */

Source from the content-addressed store, hash-verified

106/*~ If we can't agree on parameters, we fail to open the channel.
107 * Tell lightningd why. */
108static void NORETURN negotiation_aborted(struct state *state, const char *why)
109{
110 status_debug("aborted opening negotiation: %s", why);
111 /*~ The "billboard" (exposed as "status" in the JSON listpeers RPC
112 * call) is a transient per-channel area which indicates important
113 * information about what is happening. It has a "permanent" area for
114 * each state, which can be used to indicate what went wrong in that
115 * state (such as here), and a single transient area for current
116 * status. */
117 peer_billboard(true, why);
118
119 /* Tell master that funding failed. */
120 wire_sync_write(REQ_FD, take(towire_openingd_failed(NULL, why)));
121 exit(0);
122}
123
124/*~ For negotiation failures: we tell them the parameter we didn't like. */
125static void NORETURN negotiation_failed(struct state *state,

Callers 4

negotiation_failedFunction · 0.70
opening_negotiate_msgFunction · 0.70
funder_channel_startFunction · 0.70
handle_master_inFunction · 0.70

Calls 2

peer_billboardFunction · 0.50
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected