aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/marshaller.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-01 18:19:52 +0800
committerGitHub <noreply@github.com>2018-10-01 18:19:52 +0800
commit9c33b9dc8aa59d414a6697f1e2d036e5581860ee (patch)
tree74a4a77b5c28fa9a550fe1ba40b5b2efac0e7630 /simulation/marshaller.go
parent9b78db7a4744176070bf968d50dbebb191b28b69 (diff)
downloaddexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar.gz
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar.bz2
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar.lz
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar.xz
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.tar.zst
dexon-consensus-9c33b9dc8aa59d414a6697f1e2d036e5581860ee.zip
core: update data model to reflect new model (#157)
Update data model: 1) Remove witness ack. 2) Add round to block. 3) Update governance interface.
Diffstat (limited to 'simulation/marshaller.go')
-rw-r--r--simulation/marshaller.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/simulation/marshaller.go b/simulation/marshaller.go
index f2d17af..cdf080b 100644
--- a/simulation/marshaller.go
+++ b/simulation/marshaller.go
@@ -57,12 +57,6 @@ func (m *jsonMarshaller) Unmarshal(
break
}
msg = block
- case "witness-ack":
- nAck := &types.WitnessAck{}
- if err = json.Unmarshal(payload, nAck); err != nil {
- break
- }
- msg = nAck
case "vote":
vote := &types.Vote{}
if err = json.Unmarshal(payload, vote); err != nil {
@@ -115,8 +109,6 @@ func (m *jsonMarshaller) Marshal(msg interface{}) (
msgType = "info-status"
case *types.Block:
msgType = "block"
- case *types.WitnessAck:
- msgType = "witness-ack"
case *types.Vote:
msgType = "vote"
case *types.DKGPrivateShare: