]> git.bitcoin.ninja Git - rust-lightning/commit
chaininterface+multi: add filter_block and reentered to ChainWatchInterface
authorValentine Wallace <vwallace@protonmail.com>
Mon, 18 Nov 2019 21:40:05 +0000 (16:40 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 22 Nov 2019 01:35:53 +0000 (20:35 -0500)
commitf71518365f61a5fe2a0340953ad6592c0d2b72cc
tree8f0fd61f6a3ad24be03fc03e51feebc397b8ab91
parent969f8630133d8f53050d7ad48ca7a1450ebae08b
chaininterface+multi: add filter_block and reentered to ChainWatchInterface

Because filter_block takes a  and returns a list of s , we must add a lifetime to the ChainWatchInterface, which bubbles up in a lot of places. These places include adding a lifetime  to the Node struct, which causes a lot of rearranging tests so that variables don't go out of scope before the Node that owns them does.
lightning/fuzz/fuzz_targets/chanmon_fail_consistency.rs
lightning/fuzz/fuzz_targets/full_stack_target.rs
lightning/fuzz/fuzz_targets/router_target.rs
lightning/src/chain/chaininterface.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs