Zebra/zebra-state
teor 67b367929c
3. fix(state): prevent watch channel deadlocks in the state (#3870)
* Revert "Drop the Chain watch channel lock before accessing the finalized state"

This reverts commit 8870944d1323fc31e2d009b9938623de6fcbe50f.

* Add a WatchReceiver wrapper that always clones the borrowed watch data

This avoids deadlocks, by holding the read lock for as short a time as possible.

* Drop the shared Arc<Chain>s as quickly as possible

This reduces memory usage.

* Make read::block more flexible, by accepting any AsRef<Chain>

* Make the block method docs consistent

* Avoid livelocks by explicitly dropping the borrow after the clone
2022-03-17 00:37:44 +00:00
..
proptest-regressions/service 3. refactor(db): add disk serialization types for transactions (#3741) 2022-03-09 01:22:00 +00:00
src 3. fix(state): prevent watch channel deadlocks in the state (#3870) 2022-03-17 00:37:44 +00:00
tests 7. feat(state): add a read-only state service stub (#3835) 2022-03-11 10:58:22 -03:00
Cargo.toml build(deps): bump regex from 1.5.4 to 1.5.5 (#3797) 2022-03-10 04:01:26 +00:00