Use Channel::funding_txo instead of its channel_monitor.funding_txo
authorMatt Corallo <git@bluematt.me>
Thu, 6 Feb 2020 05:03:32 +0000 (00:03 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 26 Feb 2020 22:48:31 +0000 (17:48 -0500)
commitd271d74bc71cf8a825be38734aaceb57e2d5d0a3
tree19fa0cc0407a8e1854239cc6dfe3486adfff5657
parent6296eb1c5f607251b09188f2073d4c35bc394d24
Use Channel::funding_txo instead of its channel_monitor.funding_txo

Currently Channel relies on its own internal channel_monitor copy
to keep track of funding_txo information, which is both a bit
awkward and not ideal if we want to get rid of the ChannelMonitor
copy in Channel.

Instead, just duplicate it (its small) and keep it directly in
Channel, allowing us to remove the (super awkward)
ChannelMonitor::unset_funding_txo().
lightning/src/chain/transaction.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs