Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable starting multiple tss processes with the same peer subset #331

Merged
merged 17 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix stopping tss process log
  • Loading branch information
mpetrun5 committed Jul 12, 2024
commit 6a1774c64cd7b7e134dc8c5b37a58170c3998fb2
4 changes: 2 additions & 2 deletions tss/ecdsa/resharing/resharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *Resharing) Run(

// Stop ends all subscriptions created when starting the tss process and unlocks keyshare.
func (r *Resharing) Stop() {
log.Info().Str("sessionID", r.SessionID()).Msgf("Stopping tss process.")
r.Log.Info().Msgf("Stopping tss process.")
r.Communication.UnSubscribe(r.subscriptionID)
r.storer.UnlockKeyshare()
r.Cancel()
Expand Down Expand Up @@ -165,7 +165,7 @@ func (r *Resharing) ValidCoordinators() []peer.ID {

// StartParams returns threshold and peer subset from the old key to share with new parties.
func (r *Resharing) StartParams(readyPeers []peer.ID) []byte {
oldSubset := common.PeersIntersection(r.key.Peers, r.Host.Peerstore().Peers())
oldSubset := common.PeersIntersection(r.key.Peers, r.Host.Peerstore().Peers())
startParams := &startParams{
OldThreshold: r.key.Threshold,
OldSubset: oldSubset,
Expand Down
2 changes: 1 addition & 1 deletion tss/ecdsa/signing/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (s *Signing) Run(

// Stop ends all subscriptions created when starting the tss process.
func (s *Signing) Stop() {
log.Info().Str("sessionID", s.SessionID()).Msgf("Stopping tss process.")
s.Log.Info().Msgf("Stopping tss process.")
s.Communication.UnSubscribe(s.subscriptionID)
s.Cancel()
}
Expand Down
2 changes: 1 addition & 1 deletion tss/frost/resharing/resharing.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (r *Resharing) Run(

// Stop ends all subscriptions created when starting the tss process and unlocks keyshare.
func (r *Resharing) Stop() {
log.Info().Str("sessionID", r.SessionID()).Msgf("Stopping tss process.")
r.Log.Info().Msgf("Stopping tss process.")
r.Communication.UnSubscribe(r.subscriptionID)
r.storer.UnlockKeyshare()
r.Cancel()
Expand Down
2 changes: 1 addition & 1 deletion tss/frost/signing/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func (s *Signing) Run(

// Stop ends all subscriptions created when starting the tss process.
func (s *Signing) Stop() {
log.Info().Str("sessionID", s.SessionID()).Msgf("Stopping tss process.")
s.Log.Info().Msgf("Stopping tss process.")
s.Communication.UnSubscribe(s.subscriptionID)
s.Cancel()
}
Expand Down