File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff 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-
417412func (p * Node ) generatePreParams () []* keygen.LocalPreParams {
418413 start := time .Now ()
419414 // Try to load from kvstore
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments