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
1 change: 1 addition & 0 deletions rust/Cargo.lock

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

1 change: 1 addition & 0 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ url = { version = "2.5.8", default-features = false }
vergen = "9.1.0"
vergen-git2 = "9.1.0"
byteorder = "1"
crossbeam-channel = "0.5.13"

# allocators
jemalloc_pprof = { version = "0.8", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions rust/op-reth/crates/cli/src/commands/op_proofs/prune.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ impl<C: ChainSpecParser<ChainSpec = OpChainSpec>> PruneCommand<C> {
storage,
block_hash_reader,
proofs_history_window,
prune_batch_size,
);
)
.with_batch_size(prune_batch_size);
pruner.run();
Ok(())
}
Expand Down
373 changes: 199 additions & 174 deletions rust/op-reth/crates/exex/src/lib.rs

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions rust/op-reth/crates/node/src/proof_history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ where

let RollupArgs {
proofs_history_window,
proofs_history_prune_interval,
proofs_history_verification_interval,
..
} = args.clone();
Expand All @@ -91,7 +90,6 @@ where
.install_exex("proofs-history", async move |exex_context| {
Ok(OpProofsExEx::builder(exex_context, storage_exec)
.with_proofs_history_window(proofs_history_window)
.with_proofs_history_prune_interval(proofs_history_prune_interval)
.with_verification_interval(proofs_history_verification_interval)
.build()
.run()
Expand Down
1 change: 1 addition & 0 deletions rust/op-reth/crates/trie/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ auto_impl.workspace = true
eyre = { workspace = true, optional = true }
strum.workspace = true
tracing.workspace = true
crossbeam-channel.workspace = true
derive_more.workspace = true

[dev-dependencies]
Expand Down
3 changes: 3 additions & 0 deletions rust/op-reth/crates/trie/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ pub enum OpProofsStorageError {
Please clear proofs data and retry initialization."
)]
InitializeStorageInconsistentState,
/// Other error with a message.
#[error("{0}")]
Other(String),
}

impl From<BlockExecutionError> for OpProofsStorageError {
Expand Down
4 changes: 4 additions & 0 deletions rust/op-reth/crates/trie/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub type OpProofsStorage<S> = S;
pub mod proof;

pub mod provider;
pub mod overlay_provider;

pub mod live;

Expand All @@ -67,3 +68,6 @@ pub use prune::{
OpProofStoragePruner, OpProofStoragePrunerResult, OpProofStoragePrunerTask, PrunerError,
PrunerOutput,
};

pub mod state;
pub mod persistence;
Loading