zebra/zebrad/src
Janito Vaqueiro Ferreira Filho 83a2e30e33
Create a `SyncStatus` helper type (#2685)
* Create a `SyncStatus` helper type

Keeps track if the synchronizer is close to the chain tip or not.

* Refactor `ChainSync` ctor. to return `SyncStatus`

Change the constructor API so that it returns a higher level construct.

* Test if `SyncStatus` waits for the chain tip

Test if waiting for the chain tip to be reached correctly finishes when
the chain tip is reached. This is done by sending recent sync lengths to
the `SyncStatus` instance, and checking that every time a separate
`SyncStatus` instance determines it has reached the tip the original
instance wakes up.

* Add a temporary attribute to allow dead code

The code added isn't used yet, so we'll add a temporary waiver until
another PR is merged to use them.
2021-08-30 10:01:33 +10:00
..
bin/zebrad Standardise clippy lints and require docs (#2238) 2021-06-04 08:48:40 +10:00
commands Create a `SyncStatus` helper type (#2685) 2021-08-30 10:01:33 +10:00
components Create a `SyncStatus` helper type (#2685) 2021-08-30 10:01:33 +10: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