aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-09 12:29:49 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208 (patch)
tree7669ca0687ad19ed17b677bdf4fe275397979e09 /dex/governance.go
parentc08afdbc7741d4559683ff304157303af8766c89 (diff)
downloadgo-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar.gz
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar.bz2
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar.lz
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar.xz
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.tar.zst
go-tangerine-14d097e5243b901b7bf8c15fb7cf4c0a0a1e9208.zip
core: vm: refactor and add DKGFinalizeds related implementations
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go13
1 files changed, 11 insertions, 2 deletions
diff --git a/dex/governance.go b/dex/governance.go
index 5ee307b88..e990f32f3 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -35,7 +35,7 @@ func (d *DexconGovernance) NodeSet(round uint64) []crypto.PublicKey {
}
// AddDKGComplaint adds a DKGComplaint.
-func (d *DexconGovernance) AddDKGComplaint(complaint *types.DKGComplaint) {
+func (d *DexconGovernance) AddDKGComplaint(round uint64, complaint *types.DKGComplaint) {
}
// DKGComplaints gets all the DKGComplaints of round.
@@ -44,10 +44,19 @@ func (d *DexconGovernance) DKGComplaints(round uint64) []*types.DKGComplaint {
}
// AddDKGMasterPublicKey adds a DKGMasterPublicKey.
-func (d *DexconGovernance) AddDKGMasterPublicKey(masterPublicKey *types.DKGMasterPublicKey) {
+func (d *DexconGovernance) AddDKGMasterPublicKey(round uint64, masterPublicKey *types.DKGMasterPublicKey) {
}
// DKGMasterPublicKeys gets all the DKGMasterPublicKey of round.
func (d *DexconGovernance) DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey {
return nil
}
+
+// AddDKGFinalize adds a DKG finalize message.
+func (d *DexconGovernance) AddDKGFinalize(round uint64, final *types.DKGFinalize) {
+}
+
+// IsDKGFinal checks if DKG is final.
+func (d *DexconGovernance) IsDKGFinal(round uint64) bool {
+ return false
+}