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

Function handle_splice_state_error

lightningd/channel_control.c:259–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259static void handle_splice_state_error(struct lightningd *ld,
260 struct channel *channel,
261 const u8 *msg)
262{
263 struct splice_command *cc;
264 char *error_msg;
265
266 if (!fromwire_channeld_splice_state_error(tmpctx, msg, &error_msg)) {
267 channel_internal_error(channel,
268 "bad channeld_splice_state_error %s",
269 tal_hex(channel, msg));
270 return;
271 }
272
273 cc = splice_command_for_chan(ld, channel);
274 if (cc)
275 was_pending(command_fail(cc->cmd, SPLICE_STATE_ERROR,
276 "%s", error_msg));
277 else
278 log_peer_unusual(ld->log, &channel->peer->id,
279 "Splice state error: %s", error_msg);
280}
281
282static void handle_splice_feerate_error(struct lightningd *ld,
283 struct channel *channel,

Callers 1

channel_msgFunction · 0.85

Calls 5

tal_hexFunction · 0.85
splice_command_for_chanFunction · 0.85
channel_internal_errorFunction · 0.70
was_pendingFunction · 0.70
command_failFunction · 0.70

Tested by

no test coverage detected