| 1007 | } |
| 1008 | |
| 1009 | static void channel_record_splice(struct channel *channel, |
| 1010 | struct amount_msat orig_our_msats, |
| 1011 | struct amount_sat orig_funding_sats, |
| 1012 | struct bitcoin_outpoint *funding, |
| 1013 | u32 blockheight, |
| 1014 | const struct bitcoin_txid *txid, |
| 1015 | const struct channel_inflight *inflight) |
| 1016 | { |
| 1017 | struct chain_coin_mvt *mvt; |
| 1018 | u32 output_count; |
| 1019 | |
| 1020 | output_count = inflight->funding_psbt->num_outputs; |
| 1021 | mvt = new_coin_channel_close(tmpctx, channel, NULL, |
| 1022 | txid, |
| 1023 | funding, |
| 1024 | blockheight, |
| 1025 | orig_our_msats, |
| 1026 | orig_funding_sats, |
| 1027 | output_count, |
| 1028 | /* is_splice = */true); |
| 1029 | wallet_save_chain_mvt(channel->peer->ld, mvt); |
| 1030 | } |
| 1031 | |
| 1032 | void channel_record_open(struct channel *channel, u32 blockheight, bool record_push) |
| 1033 | { |
no test coverage detected