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 committed Jul 27, 2022
1 parent 0a1afac commit ddd9fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/catalyst/api.go
Expand Up @@ -472,7 +472,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 ddd9fd0

Please sign in to comment.