From 3a4653924664989d05977d6159827ba4119ddb13 Mon Sep 17 00:00:00 2001 From: androlo <andreas@erisindustries.com> Date: Mon, 20 Jul 2015 11:40:58 +0200 Subject: [PATCH] Tendermint vm/Log JSON fields all lower-case. --- .../src/github.com/tendermint/tendermint/vm/types.go | 8 ++++---- erisdb/serve.go | 2 +- test/testdata/filters/testdata_filters.go | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Godeps/_workspace/src/github.com/tendermint/tendermint/vm/types.go b/Godeps/_workspace/src/github.com/tendermint/tendermint/vm/types.go index 2010c13b..9af090b1 100644 --- a/Godeps/_workspace/src/github.com/tendermint/tendermint/vm/types.go +++ b/Godeps/_workspace/src/github.com/tendermint/tendermint/vm/types.go @@ -26,10 +26,10 @@ func (acc *Account) String() string { } type Log struct { - Address Word256 - Topics []Word256 - Data []byte - Height int64 + Address Word256 `json:"address"` + Topics []Word256 `json:"topics"` + Data []byte `json:"data"` + Height int64 `json:"height"` } type AppState interface { diff --git a/erisdb/serve.go b/erisdb/serve.go index 3a4520db..a6b91d8c 100644 --- a/erisdb/serve.go +++ b/erisdb/serve.go @@ -99,4 +99,4 @@ func startNode(nd *node.Node, ready chan struct{}, shutDown <-chan struct{}) { // Block until everything is shut down. <-shutDown nd.Stop() -} +} \ No newline at end of file diff --git a/test/testdata/filters/testdata_filters.go b/test/testdata/filters/testdata_filters.go index 607b75cc..378649d4 100644 --- a/test/testdata/filters/testdata_filters.go +++ b/test/testdata/filters/testdata_filters.go @@ -267,6 +267,7 @@ var testDataJson = `{ var serverDuration uint = 100 type ( + ChainData struct { PrivValidator *state.PrivValidator `json:"priv_validator"` Genesis *state.GenesisDoc `json:"genesis"` -- GitLab