Swap out ChannelMonitor remote secret tracking for a struct.
authorMatt Corallo <git@bluematt.me>
Fri, 7 Feb 2020 21:05:24 +0000 (16:05 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 26 Feb 2020 22:48:31 +0000 (17:48 -0500)
commit27be07ba3eec8fd5b9f272f436b960f5f5a1b3d7
treeac90a15825ac78f01c7e998f0e1002db0b407360
parent72e32e7af617636aa8ffa02df60aa4a2fbf9babf
Swap out ChannelMonitor remote secret tracking for a struct.

In order to drop the ChannelMonitor from Channel, we need to track
remote per_commitment_secrets outside of the monitor to validate new
ones as they come in.

This just moves the current code from ChannelMonitor into a new
CounterpartyCommitmentSecrets struct in chan_utils.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channelmonitor.rs