Skip to content

Commit

Permalink
Log distinct operators participating in DKG
Browse files Browse the repository at this point in the history
This information is often relevant during DKG debugging. It is good
to have it visible out of the box
  • Loading branch information
lukasz-zimnoch committed Feb 9, 2024
1 parent 551e57a commit 980c85e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/tbtc/dkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"
"golang.org/x/exp/maps"
"math/big"
"sort"

Expand Down Expand Up @@ -181,10 +182,15 @@ func (de *dkgExecutor) checkEligibility(
}

dkgLogger.Infof(
"selected group members for DKG = %s",
"selected group members (seats) for DKG: [%s]",
groupSelectionResult.OperatorsAddresses,
)

dkgLogger.Infof(
"distinct operators participating in DKG: [%s]",
maps.Keys(groupSelectionResult.OperatorsAddresses.Set()),
)

if len(groupSelectionResult.OperatorsAddresses) > de.groupParameters.GroupSize {
return nil, nil, fmt.Errorf(
"group size larger than supported: [%v]",
Expand Down

0 comments on commit 980c85e

Please sign in to comment.