Skip to content

Commit d83d4a2

Browse files
authored
Only ensure node is in participant list if not new peer for resharing logic (#79)
1 parent e156d0b commit d83d4a2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pkg/mpc/node.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,10 @@ func (p *Node) CreateReshareSession(
340340
return nil, fmt.Errorf("not enough peers to create resharing session! expected %d, got %d", oldKeyInfo.Threshold+1, len(readyOldParticipantIDs))
341341
}
342342

343-
if err := p.ensureNodeIsParticipant(oldKeyInfo); err != nil {
344-
return nil, err
343+
if !isNewPeer {
344+
if err := p.ensureNodeIsParticipant(oldKeyInfo); err != nil {
345+
return nil, err
346+
}
345347
}
346348

347349
// 5. Generate party IDs

0 commit comments

Comments
 (0)