types: change number_txs to num_txs json tag in BlockMeta

and EventDataNewBlockHeader
This commit is contained in:
Anton Kaliaev
2019-11-22 12:59:08 +04:00
parent d840fa3f02
commit d5ed8a794b
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ type BlockMeta struct {
BlockID BlockID `json:"block_id"`
BlockSize int `json:"block_size"`
Header Header `json:"header"`
NumTxs int `json:"number_txs"`
NumTxs int `json:"num_txs"`
}
// NewBlockMeta returns a new BlockMeta.
+1 -2
View File
@@ -69,11 +69,10 @@ type EventDataNewBlock struct {
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
}
// light weight event for benchmarking
type EventDataNewBlockHeader struct {
Header Header `json:"header"`
NumTxs int64 `json:"number_txs"` // Number of txs in a block
NumTxs int64 `json:"num_txs"` // Number of txs in a block
ResultBeginBlock abci.ResponseBeginBlock `json:"result_begin_block"`
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
}