Skip to content

Commit dee7bed

Browse files
committed
Fix block validation crash
1 parent d468140 commit dee7bed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/orchestrator/committer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ func (c *Committer) getSequentialBlockDataToCommit(ctx context.Context) ([]commo
229229
}
230230
}
231231

232+
if len(blocksData) == 0 {
233+
return nil, nil
234+
}
235+
232236
// Sort blocks by block number
233237
sort.Slice(blocksData, func(i, j int) bool {
234238
return blocksData[i].Block.Number.Cmp(blocksData[j].Block.Number) < 0

0 commit comments

Comments
 (0)