Trait ReceiptWriter
pub trait ReceiptWriter {
// Required method
fn append_block_receipts(
&mut self,
first_tx_index: u64,
block_number: u64,
receipts: Vec<Option<Receipt>>,
) -> Result<(), ProviderError>;
}
Expand description
Writer trait for writing Receipt
data.
Required Methods§
fn append_block_receipts(
&mut self,
first_tx_index: u64,
block_number: u64,
receipts: Vec<Option<Receipt>>,
) -> Result<(), ProviderError>
fn append_block_receipts( &mut self, first_tx_index: u64, block_number: u64, receipts: Vec<Option<Receipt>>, ) -> Result<(), ProviderError>
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. IfNone
, it means they were pruned.