feat: implement EIP-7685 (#8424)

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Alexey Shekhirin
2024-05-28 15:06:28 +01:00
committed by GitHub
parent f6e1c7f76e
commit b4a1b733c9
83 changed files with 1053 additions and 214 deletions

View File

@ -86,6 +86,8 @@ pub struct Header {
pub excess_blob_gas: Option<U256>,
/// Parent beacon block root.
pub parent_beacon_block_root: Option<B256>,
/// Requests root.
pub requests_root: Option<B256>,
}
impl From<Header> for SealedHeader {
@ -111,6 +113,7 @@ impl From<Header> for SealedHeader {
blob_gas_used: value.blob_gas_used.map(|v| v.to::<u64>()),
excess_blob_gas: value.excess_blob_gas.map(|v| v.to::<u64>()),
parent_beacon_block_root: value.parent_beacon_block_root,
requests_root: value.requests_root,
};
header.seal(value.hash)
}