| 257 | } |
| 258 | |
| 259 | static 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 | |
| 282 | static void handle_splice_feerate_error(struct lightningd *ld, |
| 283 | struct channel *channel, |
no test coverage detected