diff --git a/consensus/misc/eip1559.go b/consensus/misc/eip1559.go index 88c0fe554..f07e80f62 100644 --- a/consensus/misc/eip1559.go +++ b/consensus/misc/eip1559.go @@ -71,10 +71,12 @@ func (f eip1559Calculator) CurrentFees(chainConfig *chain.Config, db kv.Getter) } currentHeader, err := rawdb.ReadHeaderByHash(db, hash) - if err != nil { return 0, 0, 0, 0, err } + if currentHeader == nil { + return 0, 0, 0, 0, nil + } if chainConfig != nil { if currentHeader.BaseFee != nil {