]> git.bitcoin.ninja Git - rust-lightning/commit
Replace use of ChainWatchInterface with WatchEvent
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Jul 2020 06:37:13 +0000 (23:37 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 24 Sep 2020 18:56:29 +0000 (11:56 -0700)
commitbd39b20f642e042981e4fdd5f3600a357be51931
treeef28b528c0b56e93dea6b166ee8b1f6dd2ad4c37
parent1ab0a1acc1e3880b9cb9aece4cd4274bef9c7973
Replace use of ChainWatchInterface with WatchEvent

SimpleManyChannelMonitor is parameterized by ChainWatchInterface to
signal what transactions and outputs to watch for on chain. The
interface has grown to cover chain access (via get_chain_utxo) and block
block filtering (via filter_block and reentered), which has added
complexity for implementations and user (see ChainWatchInterfaceUtil).

Pull the watch functionality out as a first step to eliminating
ChainWatchInterface entirely.
lightning/src/chain/mod.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs