Zebra/zebrad/src
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
..
bin/zebrad Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
commands Only enable the mempool crawler after synchronization reaches the chain tip (#2667) 2021-08-31 10:42:25 +00:00
components Only enable the mempool crawler after synchronization reaches the chain tip (#2667) 2021-08-31 10:42:25 +00:00
application.rs Add the database format to the panic metadata (#2249) 2021-06-04 14:42:15 +10:00
commands.rs Log configured network in every log message (#1568) 2021-01-12 07:46:56 +10:00
components.rs Create initial transaction crawler for the mempool (#2646) 2021-08-24 11:23:53 -03:00
config.rs Add journald support through tracing-journald (#2034) 2021-04-22 09:31:06 +10:00
lib.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
prelude.rs Fix a deadlock in TokioComponent. 2020-01-15 12:06:31 -08:00
sentry.rs Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00