reth::providers

Trait StateWriter

source
pub trait StateWriter {
    // Required method
    fn write_to_storage(
        &mut self,
        execution_outcome: ExecutionOutcome,
        is_value_known: OriginalValuesKnown,
    ) -> Result<(), ProviderError>;
}
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, ) -> Result<(), ProviderError>

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 + StateChangeWriter + HeaderProvider, <ProviderDB as DBProvider>::Tx: DbTxMut + DbTx,