| 263 | } |
| 264 | |
| 265 | static 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 | |
| 288 | static void handle_splice_feerate_error(struct lightningd *ld, |
| 289 | struct channel *channel, |
no test coverage detected