mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: make block field private (#13628)
This commit is contained in:
@ -144,7 +144,7 @@ impl<ChainSpec: EthereumHardforks> ExecutionPayloadValidator<ChainSpec> {
|
||||
return Err(PayloadError::PostCancunWithoutCancunFields)
|
||||
}
|
||||
} else {
|
||||
if sealed_block.body.has_eip4844_transactions() {
|
||||
if sealed_block.body().has_eip4844_transactions() {
|
||||
// cancun not active but blob transactions present
|
||||
return Err(PayloadError::PreCancunBlockWithBlobTransactions)
|
||||
}
|
||||
@ -163,13 +163,13 @@ impl<ChainSpec: EthereumHardforks> ExecutionPayloadValidator<ChainSpec> {
|
||||
}
|
||||
|
||||
let shanghai_active = self.is_shanghai_active_at_timestamp(sealed_block.timestamp);
|
||||
if !shanghai_active && sealed_block.body.withdrawals.is_some() {
|
||||
if !shanghai_active && sealed_block.body().withdrawals.is_some() {
|
||||
// shanghai not active but withdrawals present
|
||||
return Err(PayloadError::PreShanghaiBlockWithWithdrawals)
|
||||
}
|
||||
|
||||
if !self.is_prague_active_at_timestamp(sealed_block.timestamp) &&
|
||||
sealed_block.body.has_eip7702_transactions()
|
||||
sealed_block.body().has_eip7702_transactions()
|
||||
{
|
||||
return Err(PayloadError::PrePragueBlockWithEip7702Transactions)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user