fix: ignore header extradata validation in goerli pre-merge (#2178)

This commit is contained in:
Dan Cline
2023-04-11 18:03:45 -04:00
committed by GitHub
parent 42a98a7194
commit 9e8d9883d1
2 changed files with 25 additions and 7 deletions

View File

@ -33,12 +33,6 @@ pub fn validate_header_standalone(
})
}
// From yellow paper: extraData: An arbitrary byte array containing data
// relevant to this block. This must be 32 bytes or fewer; formally Hx.
if header.extra_data.len() > 32 {
return Err(ConsensusError::ExtraDataExceedsMax { len: header.extra_data.len() })
}
// Check if base fee is set.
if chain_spec.fork(Hardfork::London).active_at_block(header.number) &&
header.base_fee_per_gas.is_none()