diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-02 13:25:24 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:38 +0800 |
commit | 0ebc9f001e87e764ac1013471365dcebf841bea0 (patch) | |
tree | 433c03eed16ef3794bd09122bd9e2bf385cab052 /dex | |
parent | 593c5d4c9efa80916cc4819797bfc42348a43502 (diff) | |
download | go-tangerine-0ebc9f001e87e764ac1013471365dcebf841bea0.tar.gz go-tangerine-0ebc9f001e87e764ac1013471365dcebf841bea0.tar.zst go-tangerine-0ebc9f001e87e764ac1013471365dcebf841bea0.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 } |