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

Function channel_record_splice

lightningd/channel_control.c:1009–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009static 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
1032void channel_record_open(struct channel *channel, u32 blockheight, bool record_push)
1033{

Callers 1

Calls 2

wallet_save_chain_mvtFunction · 0.85
new_coin_channel_closeFunction · 0.50

Tested by

no test coverage detected