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

Function handle_splice_state_error

lightningd/channel_control.c:265–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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