chaininterface: add BlockNotifier struct
authorValentine Wallace <vwallace@protonmail.com>
Sat, 9 Nov 2019 01:12:13 +0000 (20:12 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 22 Nov 2019 01:34:00 +0000 (20:34 -0500)
commit969f8630133d8f53050d7ad48ca7a1450ebae08b
tree8b471957c4ccb6ef430715dc6edf7b22a8a340be
parent1ec0c14fce2766c803bf6de04e71b7e0766e51c2
chaininterface: add BlockNotifier struct

Adding this struct will allow us to remove the circular reference
between ChainListeners and the ChainWatchInterface, because it
separates out the responsibility of notifying listeners about new
blocks from the responsibility of storing and retrieving watched
transactions.
lightning/src/chain/chaininterface.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs