]> git.bitcoin.ninja Git - rust-lightning/commit
Remove BlockNotifier
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 29 Jul 2020 01:08:46 +0000 (18:08 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 7 Aug 2020 00:12:56 +0000 (17:12 -0700)
commit382c71cb2609941bee0c37ad7ac2a15205a503d6
tree8137fe26e3a7f795d99e182198fae069a2307f88
parentaddc49d7999d86210d575dcff9377d18a86ccaf7
Remove BlockNotifier

BlockNotifier is a convenience for handing blocks to listeners. However,
it requires that each listener conforms to the ChainListener interface.
Additionally, there are only two listeners, ChannelManager and
ChainMonitor, the latter of which may not be used when monitoring
channels remotely. Remove BlockNotifier since it doesn't provide much
value and constrains each listener to a specific interface.
lightning/src/chain/chaininterface.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs