mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
docs: fix block.Header.Time description (#3529)
It's not proposer local time anymore, but a weighted median Fixes #3514
This commit is contained in:
parent
f965a4db15
commit
40da355234
@ -20,3 +20,4 @@
|
|||||||
|
|
||||||
### BUG FIXES:
|
### BUG FIXES:
|
||||||
- [p2p] \#2716 Check if we're already connected to peer right before dialing it (@melekes)
|
- [p2p] \#2716 Check if we're already connected to peer right before dialing it (@melekes)
|
||||||
|
- [docs] \#3514 Fix block.Header.Time description (@melekes)
|
||||||
|
@ -347,8 +347,10 @@ Commit are included in the header of the next block.
|
|||||||
- `Version (Version)`: Version of the blockchain and the application
|
- `Version (Version)`: Version of the blockchain and the application
|
||||||
- `ChainID (string)`: ID of the blockchain
|
- `ChainID (string)`: ID of the blockchain
|
||||||
- `Height (int64)`: Height of the block in the chain
|
- `Height (int64)`: Height of the block in the chain
|
||||||
- `Time (google.protobuf.Timestamp)`: Time of the block. It is the proposer's
|
- `Time (google.protobuf.Timestamp)`: Time of the previous block.
|
||||||
local time when block was created.
|
For heights > 1, it's the weighted median of the timestamps of the valid
|
||||||
|
votes in the block.LastCommit.
|
||||||
|
For height == 1, it's genesis time.
|
||||||
- `NumTxs (int32)`: Number of transactions in the block
|
- `NumTxs (int32)`: Number of transactions in the block
|
||||||
- `TotalTxs (int64)`: Total number of transactions in the blockchain until
|
- `TotalTxs (int64)`: Total number of transactions in the blockchain until
|
||||||
now
|
now
|
||||||
|
@ -244,7 +244,7 @@ The height is an incrementing integer. The first block has `block.Header.Height
|
|||||||
### Time
|
### Time
|
||||||
|
|
||||||
```
|
```
|
||||||
block.Header.Timestamp >= prevBlock.Header.Timestamp + 1 ms
|
block.Header.Timestamp >= prevBlock.Header.Timestamp + state.consensusParams.Block.TimeIotaMs
|
||||||
block.Header.Timestamp == MedianTime(block.LastCommit, state.LastValidators)
|
block.Header.Timestamp == MedianTime(block.LastCommit, state.LastValidators)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user