Skip to content

Commit

Permalink
include mismatch number in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Sep 18, 2024
1 parent 2098213 commit f18670f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/bootstrap/run/qc.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func GenerateQCParticipantData(allNodes, internalNodes []bootstrap.NodeInfo, dkg

// length of DKG participants needs to match stakingNodes, since we run DKG for external and internal validators
if len(allNodes) != len(dkgData.PrivKeyShares) {
return nil, fmt.Errorf("need exactly the same number of staking public keys as DKG private participants")
return nil, fmt.Errorf("need exactly the same number of staking public keys as DKG private participants, (all=%d, dkg=%d)", len(allNodes), len(dkgData.PrivKeyShares))
}

qcData := &ParticipantData{}
Expand Down

0 comments on commit f18670f

Please sign in to comment.