pub fn append_matching_block_logs_with<R, C, F>(
all_logs: &mut Vec<<<C as RpcConvert>::Network as RpcTypes>::Log>,
converter: &C,
filter: &Filter,
header: &SealedHeader<<<C as RpcConvert>::Primitives as NodePrimitives>::BlockHeader>,
receipts: &[R],
removed: bool,
tx_hash: F,
) -> Result<usize, EthApiError>where
R: TxReceipt<Log = Log>,
C: RpcConvert,
<C as RpcConvert>::Primitives: NodePrimitives<Receipt = R>,
F: FnMut(usize) -> Result<Option<FixedBytes<32>>, EthApiError>,Available on crate feature
rpc only.Expand description
Appends all matching and converted logs of a block’s receipts, looking up the transaction hash
of a receipt with a matching log through tx_hash.
tx_hash is called with the index of the receipt in the block on the first matching log of the
receipt, and again on its next matching log only if it returned None.
Returns the total length in bytes of the topics and data of the appended logs.