Skip to content

Commit

Permalink
consensus/beacon: minor stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored Dec 9, 2022
1 parent 0c5243f commit fe4ddcf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions consensus/beacon/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,8 @@ func (beacon *Beacon) VerifyHeaders(chain consensus.ChainHeaderReader, headers [
preSeals = seals[:index]
break
}
// The 'expected' case is above, this is the non-expected case
// where we handle a chain which kept going on PoW and missed
// the merge. We split it up into pre- and post- anyway, the post-headers
// will fail validation further down
td = td.Add(td, header.Difficulty)
if ttd != nil && td.Cmp(ttd) >= 0 {
if td.Cmp(ttd) >= 0 {
// This is the last PoW header, it still belongs to
// the preHeaders, so we cannot split+break yet.
tdPassed = true
Expand Down

0 comments on commit fe4ddcf

Please sign in to comment.