diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-09-26 11:46:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 11:46:48 +0800 |
commit | 616e2d8d864d48593c90c2438dce187d42ca875c (patch) | |
tree | 54449307979c0a7b7dbe16cd185786c776ddf209 /simulation/marshaller.go | |
parent | a79c10ff1f4717e7e26096f81a57df10b8c9a592 (diff) | |
download | dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.gz dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.bz2 dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.lz dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.xz dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.zst dexon-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.zip |
core: configuration chain test (#137)
Diffstat (limited to 'simulation/marshaller.go')
-rw-r--r-- | simulation/marshaller.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/simulation/marshaller.go b/simulation/marshaller.go index 08d67a9..f2d17af 100644 --- a/simulation/marshaller.go +++ b/simulation/marshaller.go @@ -22,7 +22,6 @@ import ( "fmt" "github.com/dexon-foundation/dexon-consensus-core/core/types" - "github.com/dexon-foundation/dexon-consensus-core/crypto/dkg" ) // jsonMarshaller implements test.Marshaller to marshal simulation related @@ -77,9 +76,7 @@ func (m *jsonMarshaller) Unmarshal( } msg = privateShare case "dkg-master-public-key": - masterPublicKey := &types.DKGMasterPublicKey{ - PublicKeyShares: *dkg.NewEmptyPublicKeyShares(), - } + masterPublicKey := types.NewDKGMasterPublicKey() if err = json.Unmarshal(payload, masterPublicKey); err != nil { break } |