Fix next forgers when no bids
Arnau B arnaubennassar5@gmail.com
Tue, 29 Dec 2020 16:55:26 +0100
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
api/state.go
→
api/state.go
@@ -119,7 +119,7 @@ secondsPerBlock := int64(15) //nolint:gomnd
// currentSlot and lastClosedSlot included limit := uint(lastClosedSlot - currentSlot + 1) bids, _, err := a.h.GetBestBidsAPI(¤tSlot, &lastClosedSlot, nil, &limit, "ASC") - if err != nil { + if err != nil && tracerr.Unwrap(err) != sql.ErrNoRows { return nil, tracerr.Wrap(err) } nextForgers := []NextForger{}