mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: make StaticFileProvider generic over NodePrimitives (#12565)
This commit is contained in:
@ -150,7 +150,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
let provider = provider_factory.provider_rw()?;
|
||||
let provider = provider_factory.database_provider_rw()?;
|
||||
let mut total_decoded_receipts = 0;
|
||||
let mut total_receipts = 0;
|
||||
let mut total_filtered_out_dup_txns = 0;
|
||||
@ -247,7 +247,7 @@ where
|
||||
provider
|
||||
.save_stage_checkpoint(StageId::Execution, StageCheckpoint::new(highest_block_receipts))?;
|
||||
|
||||
UnifiedStorageWriter::commit(provider, static_file_provider)?;
|
||||
UnifiedStorageWriter::commit(provider)?;
|
||||
|
||||
Ok(ImportReceiptsResult { total_decoded_receipts, total_filtered_out_dup_txns })
|
||||
}
|
||||
|
||||
@ -54,7 +54,6 @@ impl<C: ChainSpecParser<ChainSpec = OpChainSpec>> InitStateCommandOp<C> {
|
||||
if last_block_number == 0 {
|
||||
reth_cli_commands::init_state::without_evm::setup_without_evm(
|
||||
&provider_rw,
|
||||
&static_file_provider,
|
||||
SealedHeader::new(BEDROCK_HEADER, BEDROCK_HEADER_HASH),
|
||||
BEDROCK_HEADER_TTD,
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user