From 130fc308184956ddf60a4ca57ab7548a5fdc10bf Mon Sep 17 00:00:00 2001 From: anhthii Date: Thu, 7 Aug 2025 21:23:02 +0700 Subject: [PATCH] Only ensure node is in participant list if not new peer for resharing logic --- pkg/mpc/node.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/mpc/node.go b/pkg/mpc/node.go index 22340a4..e12eac6 100644 --- a/pkg/mpc/node.go +++ b/pkg/mpc/node.go @@ -340,8 +340,10 @@ func (p *Node) CreateReshareSession( return nil, fmt.Errorf("not enough peers to create resharing session! expected %d, got %d", oldKeyInfo.Threshold+1, len(readyOldParticipantIDs)) } - if err := p.ensureNodeIsParticipant(oldKeyInfo); err != nil { - return nil, err + if !isNewPeer { + if err := p.ensureNodeIsParticipant(oldKeyInfo); err != nil { + return nil, err + } } // 5. Generate party IDs