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

Function negotiation_aborted

openingd/openingd.c:110–124  ·  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

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

Callers 3

negotiation_failedFunction · 0.70
opening_negotiate_msgFunction · 0.70
handle_master_inFunction · 0.70

Calls 2

peer_billboardFunction · 0.50
wire_sync_writeFunction · 0.50

Tested by

no test coverage detected