mirror of https://github.com/certusone/dc4bc.git
refactoring
This commit is contained in:
parent
1adce87a81
commit
b61249ef4e
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue