| 372 | } |
| 373 | |
| 374 | static void handle_extracted_preimage(struct channel *channel, const u8 *msg) |
| 375 | { |
| 376 | struct preimage preimage; |
| 377 | |
| 378 | if (!fromwire_onchaind_extracted_preimage(msg, &preimage)) { |
| 379 | channel_internal_error(channel, "Invalid extracted_preimage"); |
| 380 | return; |
| 381 | } |
| 382 | |
| 383 | onchain_fulfilled_htlc(channel, &preimage); |
| 384 | } |
| 385 | |
| 386 | static void handle_missing_htlc_output(struct channel *channel, const u8 *msg) |
| 387 | { |
no test coverage detected