From b636901c60aa666c6c6b532d06e78b529537d315 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sun, 17 Mar 2019 00:33:28 +0800 Subject: core: add GetRoundHeight interface (#493) Add GetRoundHeight interface for core to query the being height of a round. --- core/interfaces.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/interfaces.go') diff --git a/core/interfaces.go b/core/interfaces.go index ddd6c3b..707563f 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -116,6 +116,9 @@ type Governance interface { // Return the genesis node set if round == 0. NodeSet(round uint64) []crypto.PublicKey + // Get the begin height of a round. + GetRoundHeight(round uint64) uint64 + //// DKG-related methods. // AddDKGComplaint adds a DKGComplaint. -- cgit v1.2.3