Skip to content
Merged
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
6 changes: 4 additions & 2 deletions crates/optimism/cli/src/commands/op_proofs/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ use reth_cli_commands::common::{AccessRights, CliNodeTypes, Environment, Environ
use reth_node_core::version::version_metadata;
use reth_optimism_chainspec::OpChainSpec;
use reth_optimism_primitives::OpPrimitives;
use reth_optimism_trie::{db::MdbxProofsStorage, BackfillJob, OpProofsStorage, OpProofsStore};
use reth_optimism_trie::{
db::MdbxProofsStorage, InitializationJob, OpProofsStorage, OpProofsStore,
};
use reth_provider::{BlockNumReader, DBProvider, DatabaseProviderFactory};
use std::{path::PathBuf, sync::Arc};
use tracing::info;
Expand Down Expand Up @@ -78,7 +80,7 @@ impl<C: ChainSpecParser<ChainSpec = OpChainSpec>> InitCommand<C> {
provider_factory.database_provider_ro()?.disable_long_read_transaction_safety();
let db_tx = db_provider.into_tx();

BackfillJob::new(storage.clone(), &db_tx).run(best_number, best_hash).await?;
InitializationJob::new(storage.clone(), &db_tx).run(best_number, best_hash).await?;
}

info!(
Expand Down
8 changes: 4 additions & 4 deletions crates/optimism/trie/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ pub enum OpProofsStorageError {
/// Error occurred while interacting with the provider.
#[error(transparent)]
ProviderError(Arc<ProviderError>),
/// Backfill detected inconsistent state between proofs storage and source DB.
/// Initialization detected inconsistent state between proofs storage and source DB.
#[error(
"Backfill detected inconsistent state. Proofs storage does not match source DB. \
Please clear proofs data and retry backfill."
"Initialization Proofs storage detected inconsistent state. Storage does not match source DB. \
Please clear proofs data and retry initialization."
)]
BackfillInconsistentState,
InitializeStorageInconsistentState,
}

impl From<TryLockError> for OpProofsStorageError {
Expand Down
Loading
Loading