Bitcoin ScannerFeed

This commit is contained in:
Luke Parker
2024-09-10 07:07:09 -04:00
parent e36b671f37
commit ba3a6f9e91
8 changed files with 84 additions and 7 deletions

View File

@@ -71,8 +71,14 @@ pub trait ScannerFeed: 'static + Send + Sync + Clone {
/// The amount of blocks to process in parallel.
///
/// This must be at least `1`. This value should be the worst-case latency to handle a block
/// divided by the expected block time.
/// This must be at least `1`. This value MUST be at least the worst-case latency to publish a
/// Batch for a block divided by the expected block time. Setting this value too low will risk a
/// backlog forming. Setting this value too high will only delay key rotation and forwarded
/// outputs.
// The latency to publish a Batch for a block is the latency of a provided transaction
// (1 minute), the latency of a signing protocol (1 minute), the latency of Serai to finalize a
// block (1 minute), and the latency to cosign such a block (5 minutes for the cosign distance
// plus 1 minute). Accordingly, this should be at least ~30 minutes, ideally 60 minutes.
const WINDOW_LENGTH: u64;
/// The amount of blocks which will occur in 10 minutes (approximate).