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>2019-04-09 21:32:49 +0800
commit3e7dcb52f74c9ab4944d92a35a519631a2ec8298 (patch)
treee5a1895cdbea36cc9ba5e10bb5cfe29f823a8467 /dex/governance.go
parentd056357e4999c6c70c8b8e85a9e4f533895ed6c2 (diff)
downloaddexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar.gz
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar.bz2
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar.lz
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar.xz
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.tar.zst
dexon-3e7dcb52f74c9ab4944d92a35a519631a2ec8298.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.