]> 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)
committerMatt Corallo <git@bluematt.me>
Fri, 7 Sep 2018 17:34:58 +0000 (13:34 -0400)
commitecade5cf3843928078d1a5bb6d11daeb972eaa15
treebd87bfd36dcace487b3323db21a63aedcaca8567
parent10bfd8c2b036428caf65c311ac1692aad937c654
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