aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-21 15:06:38 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:21:31 +0800
commit20d12131b5b411a35558fa13a8bc86ec66d7923a (patch)
tree1d0a89371d9b87c592f86685e04d38e6b70814e3 /dex/governance.go
parent8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05 (diff)
downloadgo-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar.gz
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar.bz2
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar.lz
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar.xz
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.tar.zst
go-tangerine-20d12131b5b411a35558fa13a8bc86ec66d7923a.zip
dex: make geth buildable and update interface skeleton
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/dex/governance.go b/dex/governance.go
index cb696e42c..0ef0b56db 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -7,12 +7,20 @@ import (
type DexconGovernance struct {
}
+// NewDexconGovernance retruns a governance implementation of the DEXON
+// consensus governance interface.
+func NewDexconGovernance() *DexconGovernance {
+ return &DexconGovernance{}
+}
+
// GetValidatorSet returns the current notary set.
-func (d *DexconGovernance) GetNotarySet() map[types.ValidatorID]struct{} {
+func (d *DexconGovernance) GetNotarySet() map[types.NodeID]struct{} {
+ return make(map[types.NodeID]struct{})
}
// GetTotalOrderingK return the total ordering K constant.
-func (d *DexconGovernance) GetCCP() types.CCP {
+func (d *DexconGovernance) GetConfiguration(blockHeight uint64) *types.Config {
+ return &types.Config{}
}
// AddDKGComplaint adds a DKGComplaint.
@@ -21,6 +29,7 @@ func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) {
// GetDKGComplaints gets all the DKGComplaints of round.
func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint {
+ return nil
}
// AddDKGMasterPublicKey adds a DKGMasterPublicKey.
@@ -29,4 +38,5 @@ func (d *DexconGovernance) AddDKGMasterPublicKey(masterPublicKey *types.DKGMaste
// DKGMasterPublicKeys gets all the DKGMasterPublicKey of round.
func (d *DexconGovernance) DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey {
+ return nil
}