]> git.bitcoin.ninja Git - rust-lightning/commit
Add HTLC/extra data in LocalCommitmentTransaction from construction
authorMatt Corallo <git@bluematt.me>
Sat, 18 Apr 2020 04:10:24 +0000 (00:10 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Apr 2020 17:34:57 +0000 (13:34 -0400)
commit3ea13194e8ad3ea3493ca4ba63cd215eee105feb
tree0a64c68f651ae56b7dacf5ff0844aa7bc7811670
parentba75b3ecd7f88a79ff6392a5229c4ab6c14a8591
Add HTLC/extra data in LocalCommitmentTransaction from construction

1107ab06c33bd360bdee7ee64f4b690e753003f6 introduced some additional
metadata, including per-HTLC data in LocalCommitmentTransaction. To
keep diff reasonable it did so in ChannelMonitor after the
LocalCommitmentTransaction had been constructed and passed over the
wall, but there's little reason to do so - we should just be
constructing them with the data from the start, filled in by Channel.

This cleans up some internal interfaces a bit, slightly reduces
some data duplication and moves us one step forward to exposing
the guts of LocalCommitmentTransaction publicly in a sensible way.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs