Skip to content

Commit

Permalink
remove redundant logs
Browse files Browse the repository at this point in the history
  • Loading branch information
zargarzadehm committed Jan 12, 2024
1 parent e1f09c8 commit bddf60d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ecdsa/signing/local_party_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ signing:
go updater(parties[dest[0].Index], msg, errCh)
}

case xx := <-endCh:
case <-endCh:
atomic.AddInt32(&ended, 1)
if atomic.LoadInt32(&ended) == int32(len(signPIDs)) {
t.Logf("Done. Received signature data from %d participants", ended)
Expand All @@ -122,7 +122,6 @@ signing:
}
ok := ecdsa.Verify(&pk, big.NewInt(42).Bytes(), R.X(), sumS)
assert.True(t, ok, "ecdsa verify must pass")
t.Logf("Message: %v", hex.EncodeToString(xx.M))
t.Log("ECDSA signing test done.")
// END ECDSA verify

Expand Down Expand Up @@ -191,7 +190,7 @@ signing:
go updater(parties[dest[0].Index], msg, errCh)
}

case xx := <-endCh:
case <-endCh:
atomic.AddInt32(&ended, 1)
if atomic.LoadInt32(&ended) == int32(len(signPIDs)) {
t.Logf("Done. Received signature data from %d participants", ended)
Expand All @@ -218,7 +217,6 @@ signing:
}
ok := ecdsa.Verify(&pk, msgData, R.X(), sumS)
assert.True(t, ok, "ecdsa verify must pass")
t.Logf("Message: %v", hex.EncodeToString(xx.M))
t.Log("ECDSA signing test done.")
// END ECDSA verify

Expand Down

0 comments on commit bddf60d

Please sign in to comment.