Skip to content

Commit

Permalink
fix bohr (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Jul 26, 2024
1 parent 214ac14 commit a9df09c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/misc/eip4844.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ func VerifyPresenceOfCancunHeaderFields(header *types.Header) error {
return nil
}

// VerifyPresenceOfCancunHeaderFields checks that the fields introduced in Cancun (EIP-4844, EIP-4788) are present.
// VerifyPresenceOfBohrHeaderFields checks that the fields introduced in Cancun (EIP-4844, EIP-4788) are present.
func VerifyPresenceOfBohrHeaderFields(header *types.Header) error {
if header.BlobGasUsed == nil {
return fmt.Errorf("header is missing blobGasUsed")
}
if header.ExcessBlobGas == nil {
return fmt.Errorf("header is missing excessBlobGas")
}
if header.ParentBeaconBlockRoot != nil || *header.ParentBeaconBlockRoot != (libcommon.Hash{}) {
if header.ParentBeaconBlockRoot == nil || *header.ParentBeaconBlockRoot != (libcommon.Hash{}) {
return fmt.Errorf("invalid parentBeaconRoot, have %#x, expected zero hash", header.ParentBeaconBlockRoot)
}
if header.WithdrawalsHash == nil || *header.WithdrawalsHash != types.EmptyRootHash {
Expand Down

0 comments on commit a9df09c

Please sign in to comment.