Browse Source

Merge pull request #434 from hermeznetwork/fix/next-forgers-null

Fix next forgers when no bids
feature/sql-semaphore1
Eduard S 4 years ago
committed by GitHub
parent
commit
6e2cde8a31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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