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@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit593c5d4c9efa80916cc4819797bfc42348a43502 (patch)
treeaa76753d1422ac664e9dd62b149458fdd294ada2 /dex/governance.go
parent21cbe9d5b1630be351329a5715fd599030a00122 (diff)
downloadgo-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.gz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.bz2
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.lz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.xz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.zst
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.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.