feat: bump alloy (#12930)

Co-authored-by: Ryan Schneider <ryanleeschneider@gmail.com>
This commit is contained in:
Arsenii Kulikov
2024-12-02 04:55:17 +04:00
committed by GitHub
parent 890f082453
commit 7f88e62781
41 changed files with 386 additions and 204 deletions

View File

@ -3,7 +3,7 @@
use alloc::vec::Vec;
use alloy_eips::eip7685::Requests;
use alloy_primitives::{map::HashSet, Address, BlockNumber};
use alloy_primitives::{map::HashSet, Address, BlockNumber, Log};
use reth_execution_errors::{BlockExecutionError, InternalBlockExecutionError};
use reth_primitives::Receipts;
use reth_primitives_traits::Receipt;
@ -131,7 +131,7 @@ impl<T> BlockBatchRecord<T> {
/// Save receipts to the executor.
pub fn save_receipts(&mut self, receipts: Vec<T>) -> Result<(), BlockExecutionError>
where
T: Receipt,
T: Receipt<Log = Log>,
{
let mut receipts = receipts.into_iter().map(Some).collect();
// Prune receipts if necessary.
@ -144,7 +144,7 @@ impl<T> BlockBatchRecord<T> {
/// Prune receipts according to the pruning configuration.
fn prune_receipts(&mut self, receipts: &mut Vec<Option<T>>) -> Result<(), PruneSegmentError>
where
T: Receipt,
T: Receipt<Log = Log>,
{
let (Some(first_block), Some(tip)) = (self.first_block, self.tip) else { return Ok(()) };