feat: implement EIP-2935 (#8431)

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
Alexey Shekhirin
2024-05-30 13:18:00 +01:00
committed by GitHub
parent bafec99f6b
commit 633b655fef
7 changed files with 573 additions and 29 deletions

View File

@ -67,7 +67,9 @@ pub enum BlockValidationError {
/// The beacon block root
parent_beacon_block_root: B256,
},
/// EVM error during beacon root contract call
/// EVM error during [EIP-4788] beacon root contract call.
///
/// [EIP-4788]: https://eips.ethereum.org/EIPS/eip-4788
#[error("failed to apply beacon root contract call at {parent_beacon_block_root}: {message}")]
BeaconRootContractCall {
/// The beacon block root
@ -75,6 +77,9 @@ pub enum BlockValidationError {
/// The error message.
message: String,
},
/// Provider error during the [EIP-2935](https://eips.ethereum.org/EIPS/eip-2935) block hash account loading.
#[error(transparent)]
BlockHashAccountLoadingFailed(#[from] ProviderError),
}
/// BlockExecutor Errors