Skip to content

Commit 4e8061b

Browse files
Log distinct operators participating in DKG
This information is often relevant during DKG debugging. It is good to have it visible out of the box (cherry picked from commit 980c85e)
1 parent e115492 commit 4e8061b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/tbtc/dkg.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"golang.org/x/exp/maps"
78
"math/big"
89
"sort"
910

@@ -181,10 +182,15 @@ func (de *dkgExecutor) checkEligibility(
181182
}
182183

183184
dkgLogger.Infof(
184-
"selected group members for DKG = %s",
185+
"selected group members (seats) for DKG: [%s]",
185186
groupSelectionResult.OperatorsAddresses,
186187
)
187188

189+
dkgLogger.Infof(
190+
"distinct operators participating in DKG: [%s]",
191+
maps.Keys(groupSelectionResult.OperatorsAddresses.Set()),
192+
)
193+
188194
if len(groupSelectionResult.OperatorsAddresses) > de.groupParameters.GroupSize {
189195
return nil, nil, fmt.Errorf(
190196
"group size larger than supported: [%v]",

0 commit comments

Comments
 (0)