mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rm optimism gated imports (#8491)
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
//! CLI definition and entrypoint to executable
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
use crate::commands::import_op;
|
||||
#[cfg(feature = "optimism")]
|
||||
use crate::commands::import_receipts_op;
|
||||
use crate::{
|
||||
args::{
|
||||
utils::{chain_help, genesis_value_parser, SUPPORTED_CHAINS},
|
||||
@ -197,11 +193,11 @@ pub enum Commands<Ext: clap::Args + fmt::Debug = NoArgs> {
|
||||
/// This syncs RLP encoded OP blocks below Bedrock from a file, without executing.
|
||||
#[cfg(feature = "optimism")]
|
||||
#[command(name = "import-op")]
|
||||
ImportOp(import_op::ImportOpCommand),
|
||||
ImportOp(crate::commands::import_op::ImportOpCommand),
|
||||
/// This imports RLP encoded receipts from a file.
|
||||
#[cfg(feature = "optimism")]
|
||||
#[command(name = "import-receipts-op")]
|
||||
ImportReceiptsOp(import_receipts_op::ImportReceiptsOpCommand),
|
||||
ImportReceiptsOp(crate::commands::import_receipts_op::ImportReceiptsOpCommand),
|
||||
/// Dumps genesis block JSON configuration to stdout.
|
||||
DumpGenesis(dump_genesis::DumpGenesisCommand),
|
||||
/// Database debugging utilities
|
||||
|
||||
@ -39,8 +39,6 @@ use reth_provider::{
|
||||
BundleStateWithReceipts, ProviderFactory, StageCheckpointReader, StateProviderFactory,
|
||||
};
|
||||
use reth_revm::database::StateProviderDatabase;
|
||||
#[cfg(feature = "optimism")]
|
||||
use reth_rpc_types::engine::OptimismPayloadAttributes;
|
||||
use reth_rpc_types::engine::{BlobsBundleV1, PayloadAttributes};
|
||||
use reth_transaction_pool::{
|
||||
blobstore::InMemoryBlobStore, BlobStore, EthPooledTransaction, PoolConfig, TransactionOrigin,
|
||||
@ -257,7 +255,7 @@ impl Command {
|
||||
#[cfg(feature = "optimism")]
|
||||
reth_node_optimism::OptimismPayloadBuilderAttributes::try_new(
|
||||
best_block.hash(),
|
||||
OptimismPayloadAttributes {
|
||||
reth_rpc_types::engine::OptimismPayloadAttributes {
|
||||
payload_attributes: payload_attrs,
|
||||
transactions: None,
|
||||
no_tx_pool: None,
|
||||
|
||||
Reference in New Issue
Block a user