zebra/zebrad
Janito Vaqueiro Ferreira Filho 8bff71e857
Only enable the mempool crawler after synchronization reaches the chain tip (#2667)
* Store a `SyncStatus` handle in the `Crawler`

The helper type will make it easier to determine if the crawler is
enabled or not.

* Pause crawler if mempool is disabled

Implement waiting until the mempool becomes enabled, so that the crawler
does not run while the mempool is disabled.

If the `MempoolStatus` helper is unable to determine if the mempool is
enabled, stop the crawler task entirely.

* Update test to consider when crawler is paused

Change the mempool crawler test so that it's a proptest that tests
different chain sync. lengths. This leads to different scenarios with
the crawler pausing and resuming.

Co-authored-by: teor <teor@riseup.net>
2021-08-31 10:42:25 +00:00
..
src Only enable the mempool crawler after synchronization reaches the chain tip (#2667) 2021-08-31 10:42:25 +00:00
systemd add systemd service file 2020-10-14 15:33:00 -04:00
tests Increase timeout of cached database creation 2021-08-06 11:52:29 -04:00
Cargo.toml Update versions for zebra v1.0.0-alpha.16 release (#2670) 2021-08-27 22:13:54 +00:00
README.md Create workspace skeleton based on design.md 2019-08-29 14:46:54 -07:00
build.rs Add a "modified" flag to the panic report metadata 2021-05-20 09:00:56 +10:00

README.md

Zebrad

Zebrad is an application.

Getting Started

This application is authored using Abscissa, a Rust application framework.

For more information, see:

Documentation