]> git.bitcoin.ninja Git - rust-lightning/commit
Remove ChainWatchInterface from BlockNotifier
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jun 2020 22:10:17 +0000 (15:10 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 4 Aug 2020 23:39:29 +0000 (16:39 -0700)
commitaf5ed440c554ce4ebe130ea739afad7b97af59b8
tree4e0f2301d024bb627b78b30d3b3d1dd5aeeb6e17
parentd735a24e6a573eabbb0b2e6f1988d63a46351372
Remove ChainWatchInterface from BlockNotifier

ChainListeners should be independent of each other, but in practice this
is not the case because ChainWatchInterface introduces a dependency
between them. Push ChainWatchInterface down into the ChainListener
implementations where needed. Update ChainListener's block_connected
method to take the entire block.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning/src/chain/chaininterface.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/reorg_tests.rs