aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils/utils.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils/utils.go')
-rw-r--r--core/utils/utils.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/utils/utils.go b/core/utils/utils.go
index b8bd95e..d714068 100644
--- a/core/utils/utils.go
+++ b/core/utils/utils.go
@@ -138,3 +138,9 @@ func LaunchDummyReceiver(
func GetDKGThreshold(config *types.Config) int {
return int(config.DKGSetSize/3) + 1
}
+
+// GetNextRoundCheckpoint returns the block height to check if the next round
+// is ready.
+func GetNextRoundCheckpoint(begin, length uint64) uint64 {
+ return begin + length*9/10
+}