op_reth::cli::commands::import_receipts

Function import_receipts_from_file

pub async fn import_receipts_from_file<N, P, F>(
    provider_factory: ProviderFactory<N>,
    path: P,
    chunk_len: Option<u64>,
    filter: F,
) -> Result<(), Report>
where N: ProviderNodeTypes<ChainSpec = OpChainSpec>, <N as NodeTypes>::Primitives: NodePrimitives<Receipt = Receipt>, P: AsRef<Path>, F: FnMut(u64, &mut Receipts) -> usize,
Available on crate feature optimism only.
Expand description

Imports receipts to static files from file in chunks. See import_receipts_from_reader.