diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-09-18 14:39:31 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:21:31 +0800 |
commit | 8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05 (patch) | |
tree | 2da15b2a0bd88983d16bc14eac239d999dee9978 /dex/governance.go | |
parent | 746db3fd70a4c6311a6dc5ecfc57a56f5c1c6b80 (diff) | |
download | go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar.gz go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar.bz2 go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar.lz go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar.xz go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.tar.zst go-tangerine-8e483e2f87cdccd924ce2261ac3a5ec8b58aaf05.zip |
Add udpated governance interface and app interface
Diffstat (limited to 'dex/governance.go')
-rw-r--r-- | dex/governance.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go new file mode 100644 index 000000000..cb696e42c --- /dev/null +++ b/dex/governance.go @@ -0,0 +1,32 @@ +package dex + +import ( + "github.com/dexon-foundation/dexon-consensus-core/core/types" +) + +type DexconGovernance struct { +} + +// GetValidatorSet returns the current notary set. +func (d *DexconGovernance) GetNotarySet() map[types.ValidatorID]struct{} { +} + +// GetTotalOrderingK return the total ordering K constant. +func (d *DexconGovernance) GetCCP() types.CCP { +} + +// AddDKGComplaint adds a DKGComplaint. +func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) { +} + +// GetDKGComplaints gets all the DKGComplaints of round. +func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint { +} + +// AddDKGMasterPublicKey adds a DKGMasterPublicKey. +func (d *DexconGovernance) AddDKGMasterPublicKey(masterPublicKey *types.DKGMasterPublicKey) { +} + +// DKGMasterPublicKeys gets all the DKGMasterPublicKey of round. +func (d *DexconGovernance) DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey { +} |