aboutsummaryrefslogtreecommitdiffstats
path: root/core/utils/round-event.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/utils/round-event.go')
-rw-r--r--core/utils/round-event.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/utils/round-event.go b/core/utils/round-event.go
index 2642bfd..0e70cf2 100644
--- a/core/utils/round-event.go
+++ b/core/utils/round-event.go
@@ -92,6 +92,11 @@ func (e RoundEventParam) NextDKGRegisterHeight() uint64 {
return e.BeginHeight + e.Config.RoundLength/2
}
+// RoundEndHeight returns the round ending height of this round event.
+func (e RoundEventParam) RoundEndHeight() uint64 {
+ return e.BeginHeight + e.Config.RoundLength
+}
+
func (e RoundEventParam) String() string {
return fmt.Sprintf("roundEvtParam{Round:%d Reset:%d Height:%d}",
e.Round,