Browse Source

Fix next forgers when no bids

feature/sql-semaphore1
Arnau B 3 years ago
parent
commit
d3c703ca75
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      api/state.go

+ 1
- 1
api/state.go

@ -119,7 +119,7 @@ func (a *API) getNextForgers(lastBlock common.Block, currentSlot, lastClosedSlot
// currentSlot and lastClosedSlot included
limit := uint(lastClosedSlot - currentSlot + 1)
bids, _, err := a.h.GetBestBidsAPI(&currentSlot, &lastClosedSlot, nil, &limit, "ASC")
if err != nil {
if err != nil && tracerr.Unwrap(err) != sql.ErrNoRows {
return nil, tracerr.Wrap(err)
}
nextForgers := []NextForger{}

Loading…
Cancel
Save