]> git.bitcoin.ninja Git - rust-lightning/commit
Fetch latest commitment txn via monitor, not channel in test 2020-03-no-chan-mon
authorMatt Corallo <git@bluematt.me>
Thu, 19 Mar 2020 01:37:09 +0000 (21:37 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 19 Mar 2020 23:21:36 +0000 (19:21 -0400)
commitfeca83a8a8e3942445b41a2066f03a1d9210d723
tree38642c16a106e28d2c49b25725978237047224fc
parente1c1ac7576bb74678d65b34b19cd091fc0bb371e
Fetch latest commitment txn via monitor, not channel in test

Eventually, we want to remove the Channel's copy of its own
ChannelMonitor, reducing memory footprint and complexity of
ChannelManager greatly.

This removes the last uses of said ChannelMonitor for latest
local commitment transactions (though it is still used for
would_broadcast_at_height(), which is the last remaining use).
lightning/src/ln/functional_test_utils.rs