Skip to content
Open
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
5 changes: 3 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
with:
tool: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build -p scroll-derivation-pipeline
run: cargo codspeed build -p scroll-derivation-pipeline --profile profiling
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
uses: CodSpeedHQ/action@v4
with:
mode: instrumentation
run: cargo codspeed run --workspace
2 changes: 0 additions & 2 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ significant_drop_tightening = "allow"
too_long_first_doc_paragraph = "allow"
large_enum_variant = "allow"

# Use the `--profile profiling` flag to show symbols in release mode.
# e.g. `cargo build --profile profiling`
[profile.profiling]
inherits = "release"
debug = "full"
strip = "none"

[workspace.dependencies]
# alloy
alloy-chains = { version = "0.2.5", default-features = false }
Expand Down
11 changes: 10 additions & 1 deletion crates/chain-orchestrator/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use alloy_transport::TransportErrorKind;
use rollup_node_primitives::{BatchInfo, BlockInfo};
use rollup_node_sequencer::SequencerError;
use rollup_node_signer::SignerError;
use scroll_db::{DatabaseError, L1MessageKey};
use scroll_db::{CanRetry, DatabaseError, L1MessageKey};
use scroll_engine::EngineError;

/// A type that represents an error that occurred in the chain orchestrator.
Expand Down Expand Up @@ -93,3 +93,12 @@ pub enum ChainOrchestratorError {
#[error("An error occurred while handling rollup node primitives: {0}")]
RollupNodePrimitiveError(rollup_node_primitives::RollupNodePrimitiveError),
}

impl CanRetry for ChainOrchestratorError {
fn can_retry(&self) -> bool {
match &self {
Self::DatabaseError(err) => err.can_retry(),
_ => false,
}
}
}
Loading
Loading