aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-26 11:46:48 +0800
committerGitHub <noreply@github.com>2018-09-26 11:46:48 +0800
commit616e2d8d864d48593c90c2438dce187d42ca875c (patch)
tree54449307979c0a7b7dbe16cd185786c776ddf209 /simulation
parenta79c10ff1f4717e7e26096f81a57df10b8c9a592 (diff)
downloadtangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.gz
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.bz2
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.lz
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.xz
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.tar.zst
tangerine-consensus-616e2d8d864d48593c90c2438dce187d42ca875c.zip
core: configuration chain test (#137)
Diffstat (limited to 'simulation')
-rw-r--r--simulation/marshaller.go5
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
}