aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 11:00:04 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 18:55:22 +0800
commit4b0f4f9ad181a870bd3087ea7b1a805b384a529c (patch)
tree274acdf1520032f6f57708308a11874e5d723ad0 /dex/governance.go
parent9acf5fc03ad7dabcd88eb8972db032122ef5ebe1 (diff)
downloaddexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar.gz
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar.bz2
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar.lz
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar.xz
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.tar.zst
dexon-4b0f4f9ad181a870bd3087ea7b1a805b384a529c.zip
dex: update consensus core interface
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go24
1 files changed, 17 insertions, 7 deletions
diff --git a/dex/governance.go b/dex/governance.go
index fd52a8697..44df77361 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -1,6 +1,8 @@
package dex
import (
+ coreCommon "github.com/dexon-foundation/dexon-consensus-core/common"
+ "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
"github.com/dexon-foundation/dexon-consensus-core/core/types"
)
@@ -13,15 +15,23 @@ func NewDexconGovernance() *DexconGovernance {
return &DexconGovernance{}
}
-// GetValidatorSet returns the current notary set.
-func (d *DexconGovernance) GetNotarySet(
- blockHeight uint64) map[types.NodeID]struct{} {
- return make(map[types.NodeID]struct{})
+// GetConfiguration return the total ordering K constant.
+func (d *DexconGovernance) GetConfiguration(round uint64) *types.Config {
+ return &types.Config{}
}
-// GetTotalOrderingK return the total ordering K constant.
-func (d *DexconGovernance) GetConfiguration(blockHeight uint64) *types.Config {
- return &types.Config{}
+// GetCRS returns the CRS for a given round.
+func (d *DexconGovernance) GetCRS(round uint64) coreCommon.Hash {
+ return coreCommon.Hash{}
+}
+
+// ProposeCRS send proposals of a new CRS
+func (d *DexconGovernance) ProposeCRS(round uint64, signedCRS []byte) {
+}
+
+// GetValidatorSet returns the current notary set.
+func (d *DexconGovernance) GetNodeSet(round uint64) []crypto.PublicKey {
+ return nil
}
// AddDKGComplaint adds a DKGComplaint.