]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor/dont re-enter block_conencted on duplicate watch calls
authorMatt Corallo <git@bluematt.me>
Fri, 7 Sep 2018 15:56:41 +0000 (11:56 -0400)
committerAntoine Riard <ariard@student.42.fr>
Sat, 8 Sep 2018 02:30:28 +0000 (02:30 +0000)
commitbfb9b46fb2fc6aae1c04f32c71bb8dff2bd1a05c
tree2cc493d133e971ea657b3c38fe7ee6b158a88247
parent90b545ffe3e6855e09156361ecb1d5384add1e46
Refactor/dont re-enter block_conencted on duplicate watch calls

Previously we'd hit an infinite loop if a block_connected call
always resulted in the same ChainWatchInterface registrations.
While we're at it, we also split ChainWatchUtil in two to make
things a bit more flexible for users, though not sure if that
actually matters, and make the matching more aggressive in testing,
even if we pick the more performant option at runtime.
src/chain/chaininterface.rs