Zebra/zebra-state/src/service
teor 00eee8652e
1. change(state): Run most StateService read requests without shared mutable chain state (#5132)
* Add TODOs for finalized blocks, non-finalized blocks, and reads

* Document how state requests use shared state

* Add a ReadStateService to the StateService

And cleanup service struct fields.

* Redirect Block and Transaction Requests to the ReadStateService

* Put AddressBalance in a consistent enum order

* Turn a repeated comment into documentation

* Tidy doc links

* Run Tip requests concurrently

* Remove some redundant timers

* Run Depth requests concurrently

* Run BlockLocator requests concurrently

* Move BlockLocator tests

* Run FindBlockHashes requests concurrently

* Run FindBlockHeaders requests concurrently

* Use a constant in documentation

Co-authored-by: Marek <mail@marek.onl>

* Link that constant correctly

* Expand block_locator() documentation

* Clarify the difference between tower::Buffers and the state's ordered queues

* Explain block locators better

Co-authored-by: Marek <mail@marek.onl>
2022-09-14 00:35:37 +00:00
..
chain_tip Only fetch block headers from the database to answer headers requests (#4792) 2022-07-22 09:15:22 +10:00
check feat(state): Send treestate from non-finalized state to finalized state (#4721) 2022-09-06 09:32:54 +00:00
finalized_state 1. change(state): Run most StateService read requests without shared mutable chain state (#5132) 2022-09-14 00:35:37 +00:00
non_finalized_state 1. change(state): Run most StateService read requests without shared mutable chain state (#5132) 2022-09-14 00:35:37 +00:00
read 1. change(state): Run most StateService read requests without shared mutable chain state (#5132) 2022-09-14 00:35:37 +00:00
arbitrary.rs 1. fix(perf): Run CPU-intensive state updates in parallel rayon threads (#4802) 2022-07-22 12:19:11 -04:00
block_iter.rs lint(clippy): add `unwrap_in_result` lint (#4667) 2022-06-28 06:22:07 +00:00
chain_tip.rs fix(clippy): Resolve some lifetime and reference lints (#4578) 2022-06-14 06:21:07 +00:00
check.rs fix(consensus): Increase the number of blocks checked for legacy transactions (#4804) 2022-08-29 20:25:41 +00:00
finalized_state.rs fix(test) switch zebrad to a non-blocking tracing logger (#5032) 2022-09-07 07:39:30 +00:00
non_finalized_state.rs 1. change(state): Run most StateService read requests without shared mutable chain state (#5132) 2022-09-14 00:35:37 +00:00
pending_utxos.rs Document why we do a UTXO check that looks redundant (#5106) 2022-09-07 23:42:52 +00:00
read.rs 1. change(state): Run most StateService read requests without shared mutable chain state (#5132) 2022-09-14 00:35:37 +00:00
tests.rs fix(consensus): Increase the number of blocks checked for legacy transactions (#4804) 2022-08-29 20:25:41 +00:00
watch_receiver.rs fix(doc): Fix various doc warnings, part 2 (#4561) 2022-06-14 01:22:16 +00:00