mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 14:52:17 +00:00
docs/spec/blockchain: remove json tags, dont use HexBytes
This commit is contained in:
parent
61914cf48e
commit
80c217089a
@ -42,29 +42,29 @@ the data in the current block, the previous block, and the results returned by t
|
|||||||
```go
|
```go
|
||||||
type Header struct {
|
type Header struct {
|
||||||
// basic block info
|
// basic block info
|
||||||
ChainID string `json:"chain_id"`
|
ChainID string
|
||||||
Height int64 `json:"height"`
|
Height int64
|
||||||
Time time.Time `json:"time"`
|
Time time.Time
|
||||||
NumTxs int64 `json:"num_txs"`
|
NumTxs int64
|
||||||
TotalTxs int64 `json:"total_txs"`
|
TotalTxs int64
|
||||||
|
|
||||||
// prev block info
|
// prev block info
|
||||||
LastBlockID BlockID `json:"last_block_id"`
|
LastBlockID BlockID
|
||||||
|
|
||||||
// hashes of block data
|
// hashes of block data
|
||||||
LastCommitHash cmn.HexBytes `json:"last_commit_hash"` // commit from validators from the last block
|
LastCommitHash []byte // commit from validators from the last block
|
||||||
DataHash cmn.HexBytes `json:"data_hash"` // transactions
|
DataHash []byte // Merkle root of transactions
|
||||||
|
|
||||||
// hashes from the app output from the prev block
|
// hashes from the app output from the prev block
|
||||||
ValidatorsHash cmn.HexBytes `json:"validators_hash"` // validators for the current block
|
ValidatorsHash []byte // validators for the current block
|
||||||
NextValidatorsHash cmn.HexBytes `json:"next_validators_hash"` // validators for the next block
|
NextValidatorsHash []byte // validators for the next block
|
||||||
ConsensusHash cmn.HexBytes `json:"consensus_hash"` // consensus params for current block
|
ConsensusHash []byte // consensus params for current block
|
||||||
AppHash cmn.HexBytes `json:"app_hash"` // state after txs from the previous block
|
AppHash []byte // state after txs from the previous block
|
||||||
LastResultsHash cmn.HexBytes `json:"last_results_hash"` // root hash of all results from the txs from the previous block
|
LastResultsHash []byte // root hash of all results from the txs from the previous block
|
||||||
|
|
||||||
// consensus info
|
// consensus info
|
||||||
EvidenceHash cmn.HexBytes `json:"evidence_hash"` // evidence included in the block
|
EvidenceHash []byte // evidence included in the block
|
||||||
ProposerAddress Address `json:"proposer_address"` // original proposer of the block
|
ProposerAddress []byte // original proposer of the block
|
||||||
```
|
```
|
||||||
|
|
||||||
Further details on each of these fields is described below.
|
Further details on each of these fields is described below.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user