]> git.bitcoin.ninja Git - rust-lightning/commit
Release write lock between monitor update iterations.
authorArik Sosman <git@arik.io>
Fri, 25 Aug 2023 19:31:33 +0000 (12:31 -0700)
committerArik Sosman <git@arik.io>
Sun, 27 Aug 2023 17:24:37 +0000 (10:24 -0700)
commitc7a4949a25aed0e10bf0d65e9a5918eea5e22615
tree3d3e5e1377c0fe074d498786e19d1f805cbee322
parent3dffe54258a374d15571d4ec72f5faa02477b770
Release write lock between monitor update iterations.

Previously, updating block data on a chain monitor
would acquire a write lock on all of its associated
channel monitors and not release it until the loop
completed.

Now, we instead acquire it on each iteration,
fixing #2470.
lightning/src/chain/chainmonitor.rs