arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
Fix next forgers when no bids
Arnau B arnaubennassar5@gmail.com
Tue, 29 Dec 2020 16:55:26 +0100
commit

d3c703ca75360a808bb654dbaa215ed11cb45c8d

parent

890b94a41a9282f90fea0d0ae6ab67528cb62be2

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(&currentSlot, &lastClosedSlot, nil, &limit, "ASC") - if err != nil { + if err != nil && tracerr.Unwrap(err) != sql.ErrNoRows { return nil, tracerr.Wrap(err) } nextForgers := []NextForger{}