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

Function negotiation_aborted

openingd/openingd.c:111–125  ·  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

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