mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
types: change number_txs to num_txs json tag in BlockMeta
and EventDataNewBlockHeader
This commit is contained in:
@@ -1268,14 +1268,14 @@ definitions:
|
|||||||
BlockMeta:
|
BlockMeta:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
block_id:
|
||||||
|
$ref: "#/definitions/BlockId"
|
||||||
block_size:
|
block_size:
|
||||||
type: number
|
type: number
|
||||||
x-example: 1000000
|
x-example: 1000000
|
||||||
block_id:
|
|
||||||
$ref: "#/definitions/BlockId"
|
|
||||||
header:
|
header:
|
||||||
$ref: "#/definitions/BlockHeader"
|
$ref: "#/definitions/BlockHeader"
|
||||||
number_txs:
|
num_txs:
|
||||||
type: string
|
type: string
|
||||||
example: "54"
|
example: "54"
|
||||||
Blockchain:
|
Blockchain:
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ type BlockMeta struct {
|
|||||||
BlockID BlockID `json:"block_id"`
|
BlockID BlockID `json:"block_id"`
|
||||||
BlockSize int `json:"block_size"`
|
BlockSize int `json:"block_size"`
|
||||||
Header Header `json:"header"`
|
Header Header `json:"header"`
|
||||||
NumTxs int `json:"number_txs"`
|
NumTxs int `json:"num_txs"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewBlockMeta returns a new BlockMeta.
|
// NewBlockMeta returns a new BlockMeta.
|
||||||
|
|||||||
@@ -69,11 +69,10 @@ type EventDataNewBlock struct {
|
|||||||
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
|
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// light weight event for benchmarking
|
|
||||||
type EventDataNewBlockHeader struct {
|
type EventDataNewBlockHeader struct {
|
||||||
Header Header `json:"header"`
|
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"`
|
ResultBeginBlock abci.ResponseBeginBlock `json:"result_begin_block"`
|
||||||
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
|
ResultEndBlock abci.ResponseEndBlock `json:"result_end_block"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user