mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
13b74195f7
`acknowledge_batch` can only be run if we know what the Batch should be. If we don't know what the Batch should be, we have to block until we do. Specifically, we need the block number associated with the Batch. Instead of blocking over the Scanner API, the Scanner API now solely queues actions. A new task intakes those actions once we can. This ensures we can intake the entire Substrate chain, even if our daemon for the external network is stalled at its genesis block. All of this for the block number alone seems ridiculous. To go from the block hash in the Batch to the block number without this task, we'd at least need the index task to be up to date (still requiring blocking or an API returning ephemeral errors). |
||
---|---|---|
.. | ||
frost-attempt-manager | ||
key-gen | ||
messages | ||
primitives | ||
scanner | ||
src | ||
Cargo.toml | ||
LICENSE | ||
README.md |
Processor
The Serai processor scans a specified external network, communicating with the
coordinator. For details on its exact messaging flow, and overall policies,
please view docs/processor
.