reth_storage_api

Trait ReceiptWriter

Source
pub trait ReceiptWriter {
    // Required method
    fn append_block_receipts(
        &mut self,
        first_tx_index: TxNumber,
        block_number: BlockNumber,
        receipts: Vec<Option<Receipt>>,
    ) -> ProviderResult<()>;
}
Expand description

Writer trait for writing [Receipt] data.

Required Methods§

Source

fn append_block_receipts( &mut self, first_tx_index: TxNumber, block_number: BlockNumber, receipts: Vec<Option<Receipt>>, ) -> ProviderResult<()>

Appends receipts for a block.

§Parameters
  • first_tx_index: The transaction number of the first receipt in the block.
  • block_number: The block number to which the receipts belong.
  • receipts: A vector of optional receipts in the block. If None, it means they were pruned.

Implementors§