]> 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>
Tue, 4 Aug 2020 23:39:35 +0000 (16:39 -0700)
commitc9e7e31427f51e606bd90a4d280c1356af8baf37
tree02b7fbfd04e06fe79676520efdc64c5dfba0e2f3
parentccbc5968e4948555c5fe23bfe4e2386d9e87e928
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