aboutsummaryrefslogtreecommitdiffstats
path: root/core/interfaces.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-09 10:04:28 +0800
committerGitHub <noreply@github.com>2018-10-09 10:04:28 +0800
commit9267d50de25ddf0f280eee797e2030ea989294e4 (patch)
treee6345f8b2f04d360a12d7272bf17b137a13eec93 /core/interfaces.go
parent8944f1ea16c531cbccc3f01d91854e942e040871 (diff)
downloaddexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar.gz
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar.bz2
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar.lz
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar.xz
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.tar.zst
dexon-consensus-9267d50de25ddf0f280eee797e2030ea989294e4.zip
core: Add DKG final message. (#181)
Diffstat (limited to 'core/interfaces.go')
-rw-r--r--core/interfaces.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/interfaces.go b/core/interfaces.go
index 3497535..9232251 100644
--- a/core/interfaces.go
+++ b/core/interfaces.go
@@ -116,6 +116,12 @@ type Governance interface {
// DKGMasterPublicKeys gets all the DKGMasterPublicKey of round.
DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey
+
+ // AddDKGFinalize adds a DKG finalize message.
+ AddDKGFinalize(final *types.DKGFinalize)
+
+ // IsDKGFinal checks if DKG is final.
+ IsDKGFinal(round uint64) bool
}
// Ticker define the capability to tick by interval.