Zebra/zebrad/src/commands
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
..
generate.rs zebrad: clarify config help text (#1194) 2020-10-22 15:03:01 +10:00
start.rs Only enable the mempool crawler after synchronization reaches the chain tip (#2667) 2021-08-31 10:42:25 +00:00
version.rs Tracing endpoint (#3) 2019-09-09 13:05:42 -07:00