Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions crates/consensus/primary/src/consensus_bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,15 @@ impl NodeMode {
matches!(self, NodeMode::Observer)
}

/// True if this node should run a batch builder (active CVV sequences, observer disburses).
/// True if this node should run a batch builder (active CVVs sequence into consensus).
///
/// A catching-up `CvvInactive` node must not: with no proposer draining `our_digests`, a
/// sealed batch wedges the worker batch-builder on `report_own_batch`, and that Drainable task
/// never observes shutdown, stalling the epoch-transition drain.
/// An `Observer` is not batch-producing: it cannot seal, so it forwards its pending
/// transactions to the committee instead (see the transaction forwarder). A catching-up
/// `CvvInactive` node must not either: with no proposer draining `our_digests`, a sealed batch
/// wedges the worker batch-builder on `report_own_batch`, and that Drainable task never
/// observes shutdown, stalling the epoch-transition drain.
pub fn is_batch_producing(&self) -> bool {
matches!(self, NodeMode::CvvActive | NodeMode::Observer)
matches!(self, NodeMode::CvvActive)
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/consensus/worker/src/batch-validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ async-trait = { workspace = true }
rayls-infrastructure-types = { workspace = true }
rayls-execution-evm = { workspace = true }
rayon = { workspace = true }
tokio = { workspace = true, features = ["rt"] }
tracing = { workspace = true }
dashmap = { workspace = true }
rustc-hash = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
Expand Down
Loading
Loading