diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-02 13:25:24 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 333af73098bcf40bc1f509ef2327ef6abd1042a1 (patch) | |
tree | c03dc63a077de5399ab54fc50d3bf94b5591ce3b /dex | |
parent | 3e7dcb52f74c9ab4944d92a35a519631a2ec8298 (diff) | |
download | dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar.gz dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar.bz2 dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar.lz dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar.xz dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.tar.zst dexon-333af73098bcf40bc1f509ef2327ef6abd1042a1.zip |
core: vm: add governance contract skeleton
Diffstat (limited to 'dex')
-rw-r--r-- | dex/governance.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/dex/governance.go b/dex/governance.go index 44df77361..95109690a 100644 --- a/dex/governance.go +++ b/dex/governance.go @@ -15,13 +15,13 @@ func NewDexconGovernance() *DexconGovernance { return &DexconGovernance{} } -// GetConfiguration return the total ordering K constant. -func (d *DexconGovernance) GetConfiguration(round uint64) *types.Config { +// Configuration return the total ordering K constant. +func (d *DexconGovernance) Configuration(round uint64) *types.Config { return &types.Config{} } -// GetCRS returns the CRS for a given round. -func (d *DexconGovernance) GetCRS(round uint64) coreCommon.Hash { +// CRS returns the CRS for a given round. +func (d *DexconGovernance) CRS(round uint64) coreCommon.Hash { return coreCommon.Hash{} } @@ -29,8 +29,8 @@ func (d *DexconGovernance) GetCRS(round uint64) coreCommon.Hash { func (d *DexconGovernance) ProposeCRS(round uint64, signedCRS []byte) { } -// GetValidatorSet returns the current notary set. -func (d *DexconGovernance) GetNodeSet(round uint64) []crypto.PublicKey { +// NodeSet returns the current notary set. +func (d *DexconGovernance) NodeSet(round uint64) []crypto.PublicKey { return nil } @@ -38,7 +38,7 @@ func (d *DexconGovernance) GetNodeSet(round uint64) []crypto.PublicKey { func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) { } -// GetDKGComplaints gets all the DKGComplaints of round. +// DKGComplaints gets all the DKGComplaints of round. func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint { return nil } |