Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Apr 5, 2021
1 parent 2b227fc commit fd59122
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dot/network/sync_justification.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,14 @@ func (q *syncQueue) finalizeAtHead() {
continue
}

prev = curr

// no new blocks have been finalized, request block justifications from peers
head, err := q.s.blockState.BestBlockNumber()
if err != nil {
prev = curr
continue
}

prev = curr

start := head.Uint64() - uint64(blockRequestSize)
if curr.Number.Uint64() > start {
start = curr.Number.Uint64() + 1
Expand Down

0 comments on commit fd59122

Please sign in to comment.