Skip to content

Commit

Permalink
fix panic (#4620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Jul 3, 2022
1 parent b980280 commit 8e3c099
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/rawdb/accessors_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1610,6 +1610,9 @@ func IsPosBlock(db kv.Getter, blockHash common.Hash) (trans bool, err error) {
if err != nil {
return false, err
}
if header == nil {
return false, nil
}

return header.Difficulty.Cmp(common.Big0) == 0, nil
}

0 comments on commit 8e3c099

Please sign in to comment.