Skip to content

Commit

Permalink
eth/catalyst: return 0x0 if latestvalid is pow block
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusVanDerWijden authored and karalabe committed Jul 28, 2022
1 parent 3ea4a60 commit d7f62f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ func (api *ConsensusAPI) checkInvalidAncestor(check common.Hash, head common.Has
// if the last valid hash is the terminal pow block, return 0x0 for latest valid hash
lastValid := &invalid.ParentHash
if header := api.eth.BlockChain().GetHeaderByHash(invalid.ParentHash); header != nil && header.Difficulty.BitLen() == 0 {
lastValid = nil
lastValid = &common.Hash{}
}

failure := "links to previously rejected block"
Expand Down

0 comments on commit d7f62f8

Please sign in to comment.