Skip to content

Commit

Permalink
Merge pull request #1732 from 0chain/fix/init-check
Browse files Browse the repository at this point in the history
Add check for no version
  • Loading branch information
dabasov authored Jan 12, 2025
2 parents 3d07369 + 28cb755 commit 094807f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zboxcore/sdk/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ func (a *Allocation) checkStatusV2(markerChan chan *RollbackBlobber, blobStatus
}

if allVersionConensus == "" {
if len(latestVersionMap) == 0 {
return Commit, blobStatus, nil
}
return Broken, blobStatus, nil
}

Expand Down

0 comments on commit 094807f

Please sign in to comment.