Skip to content

Commit 26975b6

Browse files
Update consensus/misc/eip4844.go
Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu>
1 parent b6f59c2 commit 26975b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consensus/misc/eip4844.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ func VerifyExcessDataGas(chainReader ChainReader, block *types.Block) error {
8080
if !chainReader.Config().IsSharding(block.Time()) {
8181
if excessDataGas != nil {
8282
return fmt.Errorf("unexpected excessDataGas in header")
83-
} else {
84-
return nil
8583
}
84+
return nil
85+
8686
}
8787
if excessDataGas == nil {
8888
return fmt.Errorf("header is missing excessDataGas")

0 commit comments

Comments
 (0)