feat: update el requests for devnet 4 (#11865)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Oliver
2024-10-19 14:48:35 +02:00
committed by GitHub
parent 2ae93682b4
commit 3bd695ee63
106 changed files with 799 additions and 1328 deletions

View File

@ -21,6 +21,9 @@ reth-consensus-common.workspace = true
reth-prune-types.workspace = true
reth-storage-api.workspace = true
reth-trie = { workspace = true, optional = true }
# alloy
alloy-eips.workspace = true
alloy-primitives.workspace = true
# revm

View File

@ -1,9 +1,10 @@
//! Helper for handling execution of multiple blocks.
use alloc::vec::Vec;
use alloy_eips::eip7685::Requests;
use alloy_primitives::{map::HashSet, Address, BlockNumber};
use reth_execution_errors::{BlockExecutionError, InternalBlockExecutionError};
use reth_primitives::{Receipt, Receipts, Request, Requests};
use reth_primitives::{Receipt, Receipts};
use reth_prune_types::{PruneMode, PruneModes, PruneSegmentError, MINIMUM_PRUNING_DISTANCE};
use revm::db::states::bundle_state::BundleRetention;
@ -170,8 +171,8 @@ impl BlockBatchRecord {
}
/// Save EIP-7685 requests to the executor.
pub fn save_requests(&mut self, requests: Vec<Request>) {
self.requests.push(requests.into());
pub fn save_requests(&mut self, requests: Requests) {
self.requests.push(requests);
}
}