From 980c85e1597a6bd3c6e8d80ee6d2779db2b37c48 Mon Sep 17 00:00:00 2001 From: Lukasz Zimnoch Date: Fri, 9 Feb 2024 11:34:30 +0100 Subject: [PATCH] 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 --- pkg/tbtc/dkg.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg/tbtc/dkg.go b/pkg/tbtc/dkg.go index bfd0cd85a5..06f417b32b 100644 --- a/pkg/tbtc/dkg.go +++ b/pkg/tbtc/dkg.go @@ -4,6 +4,7 @@ import ( "context" "errors" "fmt" + "golang.org/x/exp/maps" "math/big" "sort" @@ -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]",