refactoring

This commit is contained in:
programmer10110 2020-08-25 16:19:44 +03:00
parent 1adce87a81
commit b61249ef4e
1 changed files with 4 additions and 2 deletions

View File

@ -47,13 +47,15 @@ func (am *AirgappedMachine) handleStateAwaitParticipantsConfirmations(o *client.
am.dkgInstances[o.DKGIdentifier] = dkgInstance
pid := 0
pid := -1
for _, r := range payload {
if r.Addr == am.ParticipantAddress {
pid = r.ParticipantId
}
}
if pid < 0 {
return fmt.Errorf("failed to determine participant id for DKG with participant address %s", am.ParticipantAddress)
}
req := requests.SignatureProposalParticipantRequest{
ParticipantId: pid,