Skip to content

Commit

Permalink
Merge pull request #1444 from 0chain/log/multioperation
Browse files Browse the repository at this point in the history
Log multi operation errors
  • Loading branch information
dabasov authored Mar 27, 2024
2 parents efdd2c5 + f949a02 commit 4c6d67f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zboxcore/sdk/allocation.go
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,11 @@ func (a *Allocation) DoMultiOperation(operations []OperationRequest, opts ...Mul
wg.Wait()
// Check consensus
if mo.operationMask.CountOnes() < mo.consensusThresh {
l.Logger.Error("Multioperation: create connection failed. Required consensus not met",
zap.Int("consensusThresh", mo.consensusThresh),
zap.Int("operationMask", mo.operationMask.CountOnes()),
zap.Any("connectionErrors", connectionErrors))

majorErr := zboxutil.MajorError(connectionErrors)
if majorErr != nil {
return errors.New("consensus_not_met",
Expand Down

0 comments on commit 4c6d67f

Please sign in to comment.