Trait reth_provider::StateWriter

source ·
pub trait StateWriter {
    // Required method
    fn write_to_storage(
        &mut self,
        execution_outcome: ExecutionOutcome,
        is_value_known: OriginalValuesKnown,
    ) -> ProviderResult<()>;
}
Expand description

A helper trait for ExecutionOutcome to write state and receipts to storage.

Required Methods§

source

fn write_to_storage( &mut self, execution_outcome: ExecutionOutcome, is_value_known: OriginalValuesKnown, ) -> ProviderResult<()>

Write the data and receipts to the database or static files if static_file_producer is Some. It should be None if there is any kind of pruning/filtering over the receipts.

Implementors§

source§

impl<'a, 'b, ProviderDB> StateWriter for UnifiedStorageWriter<'a, ProviderDB, StaticFileProviderRWRefMut<'b>>
where ProviderDB: DBProvider<Tx: DbTxMut + DbTx> + StateChangeWriter + HeaderProvider,