aboutsummaryrefslogtreecommitdiffstats
path: root/dex/governance.go
diff options
context:
space:
mode:
Diffstat (limited to 'dex/governance.go')
-rw-r--r--dex/governance.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/dex/governance.go b/dex/governance.go
index b8dcf1589..ec09969b0 100644
--- a/dex/governance.go
+++ b/dex/governance.go
@@ -177,6 +177,20 @@ func (d *DexconGovernance) AddDKGFinalize(final *dkgTypes.Finalize) {
}
}
+// AddDKGSuccess adds a DKG success message.
+func (d *DexconGovernance) AddDKGSuccess(success *dkgTypes.Success) {
+ data, err := vm.PackAddDKGSuccess(success)
+ if err != nil {
+ log.Error("Failed to pack addDKGSuccess input", "err", err)
+ return
+ }
+
+ err = d.sendGovTx(context.Background(), data)
+ if err != nil {
+ log.Error("Failed to send addDKGSuccess tx", "err", err)
+ }
+}
+
// ReportForkVote reports a node for forking votes.
func (d *DexconGovernance) ReportForkVote(vote1, vote2 *coreTypes.Vote) {
data, err := vm.PackReportForkVote(vote1, vote2)