fix(coordinator): panic (#1407)

Co-authored-by: colinlyguo <colinlyguo@users.noreply.github.com>
This commit is contained in:
colin
2024-06-29 06:01:44 +08:00
committed by GitHub
parent 5f31d28ced
commit a2536d5613
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug"
)
var tag = "v4.4.21"
var tag = "v4.4.22"
var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -263,7 +263,7 @@ func (bp *BatchProverTask) assignWithTwoCircuits(ctx *gin.Context, taskCtx *prov
var hardForkName string
getHardForkName := func(batch *orm.Batch) (string, error) {
for i := 0; i < 2; i++ {
if chunkRanges[i].contains(batch.StartChunkIndex, batch.EndChunkIndex) {
if chunkRanges[i] != nil && chunkRanges[i].contains(batch.StartChunkIndex, batch.EndChunkIndex) {
hardForkName = hardForkNames[i]
break
}