Drop duplicative current-local-tx storage in channel.
authorMatt Corallo <git@bluematt.me>
Fri, 13 Dec 2019 03:42:08 +0000 (22:42 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 24 Dec 2019 17:14:09 +0000 (12:14 -0500)
commit33810eddb56490584675b8be7849ce4b46b5f535
treeb7da11b7e343d169e5d6a81896de1db4dea67b6f
parenteeac6c96955e42495520a25a5cc160bd85a2e039
Drop duplicative current-local-tx storage in channel.

We now have current-local-tx broadcast ability in channel monitors
directly (for ChannelManager deserialization), so we can just use
that instead of always having the Channel store signed ready-to-go
copies of the latest local commitment transaction.

This is further kinda nice since ChannelMonitor is live and can, eg
broadcast HTLC-Success transactions immediately as they will be
generated at broadcast time instead of in advance.

Finally, this lets us clean up a tiny bit in Channel.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs