aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-04-15 18:19:46 +0800
committerGitHub <noreply@github.com>2019-04-15 18:19:46 +0800
commit4a8d6480f7ab074bc032d68df6ee8df5876ef3cc (patch)
tree54fdb27d6254ecc56f27b7819e9e554c2b1e9f63 /cmd
parentd77c1aa22cb6f2b76af3edf4995159b843838441 (diff)
downloaddexon-4a8d6480f7ab074bc032d68df6ee8df5876ef3cc.tar.gz
dexon-4a8d6480f7ab074bc032d68df6ee8df5876ef3cc.tar.zst
dexon-4a8d6480f7ab074bc032d68df6ee8df5876ef3cc.zip
core: implement DKG success (#362)
* vendor: sync to latest core * core: implmenet dkg success * cmd: govtool: add DKGSuccess
Diffstat (limited to 'cmd')
-rw-r--r--cmd/govtool/main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/govtool/main.go b/cmd/govtool/main.go
index 239c95003..1425b9faf 100644
--- a/cmd/govtool/main.go
+++ b/cmd/govtool/main.go
@@ -90,6 +90,16 @@ func decodeInput(ctx *cli.Context) error {
utils.Fatalf("%s", err)
}
fmt.Println(finalize)
+ case "addDKGSuccess":
+ var Success []byte
+ if err := method.Inputs.Unpack(&Success, arguments); err != nil {
+ utils.Fatalf("%s", err)
+ }
+ var success dkgTypes.Success
+ if err := rlp.DecodeBytes(Success, &success); err != nil {
+ utils.Fatalf("%s", err)
+ }
+ fmt.Println(success)
case "report":
args := struct {
Type *big.Int