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§
Sourcefn append_block_receipts(
&mut self,
first_tx_index: TxNumber,
block_number: BlockNumber,
receipts: Vec<Option<Receipt>>,
) -> ProviderResult<()>
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. IfNone
, it means they were pruned.