diff options
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/utils.go b/core/utils.go index 2ef2437..671d680 100644 --- a/core/utils.go +++ b/core/utils.go @@ -231,3 +231,7 @@ func isCircleCI() bool { func isTravisCI() bool { return isCI() && os.Getenv("TRAVIS") == "true" } + +func getDKGThreshold(config *types.Config) int { + return int(config.DKGSetSize/3) + 1 +} |