mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(engine): payload cancun fields (#4010)
This commit is contained in:
@ -78,6 +78,10 @@ pub struct Header {
|
||||
pub base_fee_per_gas: Option<JsonU256>,
|
||||
/// Withdrawals root.
|
||||
pub withdrawals_root: Option<H256>,
|
||||
/// Blob gas used.
|
||||
pub blob_gas_used: Option<JsonU256>,
|
||||
/// Excess blob gas.
|
||||
pub excess_blob_gas: Option<JsonU256>,
|
||||
}
|
||||
|
||||
impl From<Header> for SealedHeader {
|
||||
@ -100,8 +104,8 @@ impl From<Header> for SealedHeader {
|
||||
parent_hash: value.parent_hash,
|
||||
logs_bloom: value.bloom,
|
||||
withdrawals_root: value.withdrawals_root,
|
||||
blob_gas_used: None,
|
||||
excess_blob_gas: None,
|
||||
blob_gas_used: value.blob_gas_used.map(|v| v.0.to::<u64>()),
|
||||
excess_blob_gas: value.excess_blob_gas.map(|v| v.0.to::<u64>()),
|
||||
};
|
||||
header.seal(value.hash)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user