diff options
Diffstat (limited to 'core/utils/utils.go')
-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 e6739ce..1a372c7 100644 --- a/core/utils/utils.go +++ b/core/utils/utils.go @@ -144,6 +144,11 @@ func GetDKGValidThreshold(config *types.Config) int { return int(config.NotarySetSize * 5 / 6) } +// GetBAThreshold return threshold for BA votes. +func GetBAThreshold(config *types.Config) int { + return int(config.NotarySetSize*2/3 + 1) +} + // GetNextRoundValidationHeight returns the block height to check if the next // round is ready. func GetNextRoundValidationHeight(begin, length uint64) uint64 { |