Skip to content

Commit d330687

Browse files
committed
Update error message, remove unecessary dh key broadcast
1 parent 26550fb commit d330687

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

pkg/mpc/node.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,7 @@ func (p *Node) CreateKeyGenSession(
8383
resultQueue messaging.MessageQueue,
8484
) (KeyGenSession, error) {
8585
if !p.peerRegistry.ArePeersReady() {
86-
return nil, fmt.Errorf(
87-
"Not enough peers to create gen session! Expected %d, got %d",
88-
p.peerRegistry.GetTotalPeersCount(),
89-
p.peerRegistry.GetReadyPeersCount(),
90-
)
86+
return nil, errors.New("All nodes are not ready!")
9187
}
9288

9389
keyInfo, _ := p.getKeyInfo(sessionType, walletID)
@@ -413,7 +409,6 @@ func (p *Node) Close() {
413409
}
414410
}
415411

416-
417412
func (p *Node) generatePreParams() []*keygen.LocalPreParams {
418413
start := time.Now()
419414
// Try to load from kvstore

pkg/mpc/registry.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,6 @@ func (r *registry) registerReadyPairs(peerIDs []string) {
126126
r.mu.Lock()
127127
r.ready = true
128128
r.mu.Unlock()
129-
// Start ECDH exchange when all peers are connected
130-
go r.triggerECDHExchange()
131129
logger.Info("All peers are ready including ECDH exchange completion")
132130
}
133131
}

0 commit comments

Comments
 (0)