diff options
Diffstat (limited to 'core/utils')
-rw-r--r-- | core/utils/utils.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/utils/utils.go b/core/utils/utils.go index fcdf422..9a4ae92 100644 --- a/core/utils/utils.go +++ b/core/utils/utils.go @@ -139,6 +139,11 @@ func GetDKGThreshold(config *types.Config) int { return int(config.NotarySetSize*2/3) + 1 } +// GetDKGValidThreshold return threshold for DKG set to considered valid. +func GetDKGValidThreshold(config *types.Config) int { + return int(config.NotarySetSize * 5 / 6) +} + // GetNextRoundValidationHeight returns the block height to check if the next // round is ready. func GetNextRoundValidationHeight(begin, length uint64) uint64 { |