You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

445 lines
28 KiB

  1. # ADR 71: Proposer-Based Timestamps
  2. * [Changelog](#changelog)
  3. * [Status](#status)
  4. * [Context](#context)
  5. * [Alternative Approaches](#alternative-approaches)
  6. * [Remove timestamps altogether](#remove-timestamps-altogether)
  7. * [Decision](#decision)
  8. * [Detailed Design](#detailed-design)
  9. * [Overview](#overview)
  10. * [Proposal Timestamp and Block Timestamp](#proposal-timestamp-and-block-timestamp)
  11. * [Saving the timestamp across heights](#saving-the-timestamp-across-heights)
  12. * [Changes to `CommitSig`](#changes-to-commitsig)
  13. * [Changes to `Commit`](#changes-to-commit)
  14. * [Changes to `Vote` messages](#changes-to-vote-messages)
  15. * [New consensus parameters](#new-consensus-parameters)
  16. * [Changes to `Header`](#changes-to-header)
  17. * [Changes to the block proposal step](#changes-to-the-block-proposal-step)
  18. * [Proposer selects proposal timestamp](#proposer-selects-proposal-timestamp)
  19. * [Proposer selects block timestamp](#proposer-selects-block-timestamp)
  20. * [Proposer waits](#proposer-waits)
  21. * [Changes to the propose step timeout](#changes-to-the-propose-step-timeout)
  22. * [Changes to validation rules](#changes-to-validation-rules)
  23. * [Proposal timestamp validation](#proposal-timestamp-validation)
  24. * [Block timestamp validation](#block-timestamp-validation)
  25. * [Changes to the prevote step](#changes-to-the-prevote-step)
  26. * [Changes to the precommit step](#changes-to-the-precommit-step)
  27. * [Changes to locking a block](#changes-to-locking-a-block)
  28. * [Remove voteTime Completely](#remove-votetime-completely)
  29. * [Future Improvements](#future-improvements)
  30. * [Consequences](#consequences)
  31. * [Positive](#positive)
  32. * [Neutral](#neutral)
  33. * [Negative](#negative)
  34. * [References](#references)
  35. ## Changelog
  36. - July 15 2021: Created by @williambanfield
  37. - Aug 4 2021: Draft completed by @williambanfield
  38. - Aug 5 2021: Draft updated to include data structure changes by @williambanfield
  39. - Aug 20 2021: Language edits completed by @williambanfield
  40. ## Status
  41. **Accepted**
  42. ## Context
  43. Tendermint currently provides a monotonically increasing source of time known as [BFTTime](https://github.com/tendermint/spec/blob/master/spec/consensus/bft-time.md).
  44. This mechanism for producing a source of time is reasonably simple.
  45. Each correct validator adds a timestamp to each `Precommit` message it sends.
  46. The timestamp it sends is either the validator's current known Unix time or one millisecond greater than the previous block time, depending on which value is greater.
  47. When a block is produced, the proposer chooses the block timestamp as the weighted median of the times in all of the `Precommit` messages the proposer received.
  48. The weighting is proportional to the amount of voting power, or stake, a validator has on the network.
  49. This mechanism for producing timestamps is both deterministic and byzantine fault tolerant.
  50. This current mechanism for producing timestamps has a few drawbacks.
  51. Validators do not have to agree at all on how close the selected block timestamp is to their own currently known Unix time.
  52. Additionally, any amount of voting power `>1/3` may directly control the block timestamp.
  53. As a result, it is quite possible that the timestamp is not particularly meaningful.
  54. These drawbacks present issues in the Tendermint protocol.
  55. Timestamps are used by light clients to verify blocks.
  56. Light clients rely on correspondence between their own currently known Unix time and the block timestamp to verify blocks they see;
  57. However, their currently known Unix time may be greatly divergent from the block timestamp as a result of the limitations of `BFTTime`.
  58. The proposer-based timestamps specification suggests an alternative approach for producing block timestamps that remedies these issues.
  59. Proposer-based timestamps alter the current mechanism for producing block timestamps in two main ways:
  60. 1. The block proposer is amended to offer up its currently known Unix time as the timestamp for the next block.
  61. 1. Correct validators only approve the proposed block timestamp if it is close enough to their own currently known Unix time.
  62. The result of these changes is a more meaningful timestamp that cannot be controlled by `<= 2/3` of the validator voting power.
  63. This document outlines the necessary code changes in Tendermint to implement the corresponding [proposer-based timestamps specification](https://github.com/tendermint/spec/tree/master/spec/consensus/proposer-based-timestamp).
  64. ## Alternative Approaches
  65. ### Remove timestamps altogether
  66. Computer clocks are bound to skew for a variety of reasons.
  67. Using timestamps in our protocol means either accepting the timestamps as not reliable or impacting the protocol’s liveness guarantees.
  68. This design requires impacting the protocol’s liveness in order to make the timestamps more reliable.
  69. An alternate approach is to remove timestamps altogether from the block protocol.
  70. `BFTTime` is deterministic but may be arbitrarily inaccurate.
  71. However, having a reliable source of time is quite useful for applications and protocols built on top of a blockchain.
  72. We therefore decided not to remove the timestamp.
  73. Applications often wish for some transactions to occur on a certain day, on a regular period, or after some time following a different event.
  74. All of these require some meaningful representation of agreed upon time.
  75. The following protocols and application features require a reliable source of time:
  76. * Tendermint Light Clients [rely on correspondence between their known time](https://github.com/tendermint/spec/blob/master/spec/light-client/verification/README.md#definitions-1) and the block time for block verification.
  77. * Tendermint Evidence validity is determined [either in terms of heights or in terms of time](https://github.com/tendermint/spec/blob/8029cf7a0fcc89a5004e173ec065aa48ad5ba3c8/spec/consensus/evidence.md#verification).
  78. * Unbonding of staked assets in the Cosmos Hub [occurs after a period of 21 days](https://github.com/cosmos/governance/blob/ce75de4019b0129f6efcbb0e752cd2cc9e6136d3/params-change/Staking.md#unbondingtime).
  79. * IBC packets can use either a [timestamp or a height to timeout packet delivery](https://docs.cosmos.network/v0.43/ibc/overview.html#acknowledgements).
  80. Finally, inflation distribution in the Cosmos Hub uses an approximation of time to calculate an annual percentage rate.
  81. This approximation of time is calculated using [block heights with an estimated number of blocks produced in a year](https://github.com/cosmos/governance/blob/master/params-change/Mint.md#blocksperyear).
  82. Proposer-based timestamps will allow this inflation calculation to use a more meaningful and accurate source of time.
  83. ## Decision
  84. Implement proposer-based timestamps and remove `BFTTime`.
  85. ## Detailed Design
  86. ### Overview
  87. Implementing proposer-based timestamps will require a few changes to Tendermint’s code.
  88. These changes will be to the following components:
  89. * The `internal/consensus/` package.
  90. * The `state/` package.
  91. * The `Vote`, `CommitSig`, `Commit` and `Header` types.
  92. * The consensus parameters.
  93. ### Proposal Timestamp and Block Timestamp
  94. This design discusses two timestamps: (1) The timestamp in the block and (2) the timestamp in the proposal message.
  95. The existence and use of both of these timestamps can get a bit confusing, so some background is given here to clarify their uses.
  96. The [proposal message currently has a timestamp](https://github.com/tendermint/tendermint/blob/e5312942e30331e7c42b75426da2c6c9c00ae476/types/proposal.go#L31).
  97. This timestamp is the current Unix time known to the proposer when sending the `Proposal` message.
  98. This timestamp is not currently used as part of consensus.
  99. The changes in this ADR will begin using the proposal message timestamp as part of consensus.
  100. We will refer to this as the **proposal timestamp** throughout this design.
  101. The block has a timestamp field [in the header](https://github.com/tendermint/tendermint/blob/dc7c212c41a360bfe6eb38a6dd8c709bbc39aae7/types/block.go#L338).
  102. This timestamp is set currently as part of Tendermint’s `BFTtime` algorithm.
  103. It is set when a block is proposed and it is checked by the validators when they are deciding to prevote the block.
  104. This field will continue to be used but the logic for creating and validating this timestamp will change.
  105. We will refer to this as the **block timestamp** throughout this design.
  106. At a high level, the proposal timestamp from height `H` is used as the block timestamp at height `H+1`.
  107. The following image shows this relationship.
  108. The rest of this document describes the code changes that will make this possible.
  109. ![](./img/pbts-message.png)
  110. ### Saving the timestamp across heights
  111. Currently, `BFTtime` uses `LastCommit` to construct the block timestamp.
  112. The `LastCommit` is created at height `H-1` and is saved in the state store to be included in the block at height `H`.
  113. `BFTtime` takes the weighted median of the timestamps in `LastCommit.CommitSig` to build the timestamp for height `H`.
  114. For proposer-based timestamps, the `LastCommit.CommitSig` timestamps will no longer be used to build the timestamps for height `H`.
  115. Instead, the proposal timestamp from height `H-1` will become the block timestamp for height `H`.
  116. To enable this, we will add a `Timestamp` field to the `Commit` struct.
  117. This field will be populated at each height with the proposal timestamp decided on at the previous height.
  118. This timestamp will also be saved with the rest of the commit in the state store [when the commit is finalized](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/internal/consensus/state.go#L1611) so that it can be recovered if Tendermint crashes.
  119. Changes to the `CommitSig` and `Commit` struct are detailed below.
  120. ### Changes to `CommitSig`
  121. The [CommitSig](https://github.com/tendermint/tendermint/blob/a419f4df76fe4aed668a6c74696deabb9fe73211/types/block.go#L604) struct currently contains a timestamp.
  122. This timestamp is the current Unix time known to the validator when it issued a `Precommit` for the block.
  123. This timestamp is no longer used and will be removed in this change.
  124. `CommitSig` will be updated as follows:
  125. ```diff
  126. type CommitSig struct {
  127. BlockIDFlag BlockIDFlag `json:"block_id_flag"`
  128. ValidatorAddress Address `json:"validator_address"`
  129. -- Timestamp time.Time `json:"timestamp"`
  130. Signature []byte `json:"signature"`
  131. }
  132. ```
  133. ### Changes to `Commit`
  134. The [Commit](https://github.com/tendermint/tendermint/blob/a419f4df76fe4aed668a6c74696deabb9fe73211/types/block.go#L746) struct does not currently contain a timestamp.
  135. The timestamps in the `Commit.CommitSig` entries are currently used to build the block timestamp.
  136. With these timestamps removed, the commit time will instead be stored in the `Commit` struct.
  137. `Commit` will be updated as follows.
  138. ```diff
  139. type Commit struct {
  140. Height int64 `json:"height"`
  141. Round int32 `json:"round"`
  142. ++ Timestamp time.Time `json:"timestamp"`
  143. BlockID BlockID `json:"block_id"`
  144. Signatures []CommitSig `json:"signatures"`
  145. }
  146. ```
  147. ### Changes to `Vote` messages
  148. `Precommit` and `Prevote` messages use a common [Vote struct](https://github.com/tendermint/tendermint/blob/a419f4df76fe4aed668a6c74696deabb9fe73211/types/vote.go#L50).
  149. This struct currently contains a timestamp.
  150. This timestamp is set using the [voteTime](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/internal/consensus/state.go#L2241) function and therefore vote times correspond to the current Unix time known to the validator.
  151. For precommits, this timestamp is used to construct the [CommitSig that is included in the block in the LastCommit](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/types/block.go#L754) field.
  152. For prevotes, this field is unused.
  153. Proposer-based timestamps will use the [RoundState.Proposal](https://github.com/tendermint/tendermint/blob/c3ae6f5b58e07b29c62bfdc5715b6bf8ae5ee951/internal/consensus/types/round_state.go#L76) timestamp to construct the `signedBytes` `CommitSig`.
  154. This timestamp is therefore no longer useful and will be dropped.
  155. `Vote` will be updated as follows:
  156. ```diff
  157. type Vote struct {
  158. Type tmproto.SignedMsgType `json:"type"`
  159. Height int64 `json:"height"`
  160. Round int32 `json:"round"`
  161. BlockID BlockID `json:"block_id"` // zero if vote is nil.
  162. -- Timestamp time.Time `json:"timestamp"`
  163. ValidatorAddress Address `json:"validator_address"`
  164. ValidatorIndex int32 `json:"validator_index"`
  165. Signature []byte `json:"signature"`
  166. }
  167. ```
  168. ### New consensus parameters
  169. The proposer-based timestamp specification includes multiple new parameters that must be the same among all validators.
  170. These parameters are `PRECISION`, `MSGDELAY`, and `ACCURACY`.
  171. The `PRECISION` and `MSGDELAY` parameters are used to determine if the proposed timestamp is acceptable.
  172. A validator will only Prevote a proposal if the proposal timestamp is considered `timely`.
  173. A proposal timestamp is considered `timely` if it is within `PRECISION` and `MSGDELAY` of the Unix time known to the validator.
  174. More specifically, a proposal timestamp is `timely` if `validatorLocalTime - PRECISION < proposalTime < validatorLocalTime + PRECISION + MSGDELAY`.
  175. Because the `PRECISION` and `MSGDELAY` parameters must be the same across all validators, they will be added to the [consensus parameters](https://github.com/tendermint/tendermint/blob/master/proto/tendermint/types/params.proto#L13) as [durations](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration).
  176. The proposer-based timestamp specification also includes a [new ACCURACY parameter](https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/pbts-sysmodel_001_draft.md#pbts-clocksync-external0).
  177. Intuitively, `ACCURACY` represents the difference between the ‘real’ time and the currently known time of correct validators.
  178. The currently known Unix time of any validator is always somewhat different from real time.
  179. `ACCURACY` is the largest such difference between each validator's time and real time taken as an absolute value.
  180. This is not something a computer can determine on its own and must be specified as an estimate by community running a Tendermint-based chain.
  181. It is used in the new algorithm to [calculate a timeout for the propose step](https://github.com/tendermint/spec/blob/master/spec/consensus/proposer-based-timestamp/pbts-algorithm_001_draft.md#pbts-alg-startround0).
  182. `ACCURACY` is assumed to be the same across all validators and therefore should be included as a consensus parameter.
  183. The consensus will be updated to include this `Timestamp` field as follows:
  184. ```diff
  185. type ConsensusParams struct {
  186. Block BlockParams `json:"block"`
  187. Evidence EvidenceParams `json:"evidence"`
  188. Validator ValidatorParams `json:"validator"`
  189. Version VersionParams `json:"version"`
  190. ++ Timestamp TimestampParams `json:"timestamp"`
  191. }
  192. ```
  193. ```go
  194. type TimestampParams struct {
  195. Accuracy time.Duration `json:"accuracy"`
  196. Precision time.Duration `json:"precision"`
  197. MsgDelay time.Duration `json:"msg_delay"`
  198. }
  199. ```
  200. ### Changes to `Header`
  201. The [Header](https://github.com/tendermint/tendermint/blob/a419f4df76fe4aed668a6c74696deabb9fe73211/types/block.go#L338) struct currently contains a timestamp.
  202. This timestamp is set as the `BFTtime` derived from the block's `LastCommit.CommitSig` timestamps.
  203. This timestamp will no longer be derived from the `LastCommit.CommitSig` timestamps and will instead be included directly into the block's `LastCommit`.
  204. This timestamp will therfore be identical in both the `Header` and the `LastCommit`.
  205. To clarify that the timestamp in the header corresponds to the `LastCommit`'s time, we will rename this timestamp field to `last_timestamp`.
  206. `Header` will be updated as follows:
  207. ```diff
  208. type Header struct {
  209. // basic block info
  210. Version version.Consensus `json:"version"`
  211. ChainID string `json:"chain_id"`
  212. Height int64 `json:"height"`
  213. -- Time time.Time `json:"time"`
  214. ++ LastTimestamp time.Time `json:"last_timestamp"`
  215. // prev block info
  216. LastBlockID BlockID `json:"last_block_id"`
  217. // hashes of block data
  218. LastCommitHash tmbytes.HexBytes `json:"last_commit_hash"`
  219. DataHash tmbytes.HexBytes `json:"data_hash"`
  220. // hashes from the app output from the prev block
  221. ValidatorsHash tmbytes.HexBytes `json:"validators_hash"`
  222. NextValidatorsHash tmbytes.HexBytes `json:"next_validators_hash"`
  223. ConsensusHash tmbytes.HexBytes `json:"consensus_hash"`
  224. AppHash tmbytes.HexBytes `json:"app_hash"`
  225. // root hash of all results from the txs from the previous block
  226. LastResultsHash tmbytes.HexBytes `json:"last_results_hash"`
  227. // consensus info
  228. EvidenceHash tmbytes.HexBytes `json:"evidence_hash"`
  229. ProposerAddress Address `json:"proposer_address"`
  230. }
  231. ```
  232. ### Changes to the block proposal step
  233. #### Proposer selects proposal timestamp
  234. The proposal logic already [sets the Unix time known to the validator](https://github.com/tendermint/tendermint/blob/2abfe20114ee3bb3adfee817589033529a804e4d/types/proposal.go#L44) into the `Proposal` message.
  235. This satisfies the proposer-based timestamp specification and does not need to change.
  236. #### Proposer selects block timestamp
  237. The proposal timestamp that was decided in height `H-1` will be stored in the `State` struct's in the `RoundState.LastCommit` field.
  238. The proposer will select this timestamp to use as the block timestamp at height `H`.
  239. #### Proposer waits
  240. Block timestamps must be monotonically increasing.
  241. In `BFTTime`, if a validator’s clock was behind, the [validator added 1 millisecond to the previous block’s time and used that in its vote messages](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/internal/consensus/state.go#L2246).
  242. A goal of adding proposer-based timestamps is to enforce some degree of clock synchronization, so having a mechanism that completely ignores the Unix time of the validator time no longer works.
  243. Validator clocks will not be perfectly in sync.
  244. Therefore, the proposer’s current known Unix time may be less than the `LastCommit.Timestamp`.
  245. If the proposer’s current known Unix time is less than the `LastCommit.Timestamp`, the proposer will sleep until its known Unix time exceeds `LastCommit.Timestamp`.
  246. This change will require amending the [defaultDecideProposal](https://github.com/tendermint/tendermint/blob/822893615564cb20b002dd5cf3b42b8d364cb7d9/internal/consensus/state.go#L1180) method.
  247. This method should now block until the proposer’s time is greater than `LastCommit.Timestamp`.
  248. #### Changes to the propose step timeout
  249. Currently, a validator waiting for a proposal will proceed past the propose step if the configured propose timeout is reached and no proposal is seen.
  250. Proposer-based timestamps requires changing this timeout logic.
  251. The proposer will now wait until its current known Unix time exceeds the `LastCommit.Timestamp` to propose a block.
  252. The validators must now take this and some other factors into account when deciding when to timeout the propose step.
  253. Specifically, the propose step timeout must also take into account potential inaccuracy in the validator’s clock and in the clock of the proposer.
  254. Additionally, there may be a delay communicating the proposal message from the proposer to the other validators.
  255. Therefore, validators waiting for a proposal must wait until after the `LastCommit.Timestamp` before timing out.
  256. To account for possible inaccuracy in its own clock, inaccuracy in the proposer’s clock, and message delay, validators waiting for a proposal will wait until `LastCommit.Timesatmp + 2*ACCURACY + MSGDELAY`.
  257. The spec defines this as `waitingTime`.
  258. The [propose step’s timeout is set in enterPropose](https://github.com/tendermint/tendermint/blob/822893615564cb20b002dd5cf3b42b8d364cb7d9/internal/consensus/state.go#L1108) in `state.go`.
  259. `enterPropose` will be changed to calculate waiting time using the new consensus parameters.
  260. The timeout in `enterPropose` will then be set as the maximum of `waitingTime` and the [configured proposal step timeout](https://github.com/tendermint/tendermint/blob/dc7c212c41a360bfe6eb38a6dd8c709bbc39aae7/config/config.go#L1013).
  261. ### Changes to validation rules
  262. The rules for validating that a proposal is valid will need slight modification to implement proposer-based timestamps.
  263. Specifically, we will change the validation logic to ensure that the proposal timestamp is `timely` and we will modify the way the block timestamp is validated as well.
  264. #### Proposal timestamp validation
  265. Adding proposal timestamp validation is a reasonably straightforward change.
  266. The current Unix time known to the proposer is already included in the [Proposal message](https://github.com/tendermint/tendermint/blob/dc7c212c41a360bfe6eb38a6dd8c709bbc39aae7/types/proposal.go#L31).
  267. Once the proposal is received, the complete message is stored in the `RoundState.Proposal` field.
  268. The precommit and prevote validation logic does not currently use this timestamp.
  269. This validation logic will be updated to check that the proposal timestamp is within `PRECISION` of the current Unix time known to the validators.
  270. If the timestamp is not within `PRECISION` of the current Unix time known to the validator, the proposal will not be considered it valid.
  271. The validator will also check that the proposal time is greater than the block timestamp from the previous height.
  272. If no valid proposal is received by the proposal timeout, the validator will prevote nil.
  273. This is identical to the current logic.
  274. #### Block timestamp validation
  275. The [validBlock function](https://github.com/tendermint/tendermint/blob/c3ae6f5b58e07b29c62bfdc5715b6bf8ae5ee951/state/validation.go#L14) currently [validates the proposed block timestamp in three ways](https://github.com/tendermint/tendermint/blob/c3ae6f5b58e07b29c62bfdc5715b6bf8ae5ee951/state/validation.go#L118).
  276. First, the validation logic checks that this timestamp is greater than the previous block’s timestamp.
  277. Additionally, it validates that the block timestamp is correctly calculated as the weighted median of the timestamps in the [block’s LastCommit](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/types/block.go#L48).
  278. Finally, the logic also authenticates the timestamps in the `LastCommit`.
  279. The cryptographic signature in each `CommitSig` is created by signing a hash of fields in the block with the validator’s private key.
  280. One of the items in this `signedBytes` hash is derived from the timestamp in the `CommitSig`.
  281. To authenticate the `CommitSig` timestamp, the validator builds a hash of fields that includes the timestamp and checks this hash against the provided signature.
  282. This takes place in the [VerifyCommit function](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/types/validation.go#L25).
  283. The logic to validate that the block timestamp is greater than the previous block’s timestamp also works for proposer-based timestamps and will not change.
  284. `BFTTime` validation is no longer applicable and will be removed.
  285. Validators will no longer check that the block timestamp is a weighted median of `LastCommit` timestamps.
  286. This will mean removing the call to [MedianTime in the validateBlock function](https://github.com/tendermint/tendermint/blob/4db71da68e82d5cb732b235eeb2fd69d62114b45/state/validation.go#L117).
  287. The `MedianTime` function can be completely removed.
  288. The `LastCommit` timestamps may also be removed.
  289. The `signedBytes` validation logic in `VerifyCommit` will be slightly altered.
  290. The `CommitSig`s in the block’s `LastCommit` will no longer each contain a timestamp.
  291. The validation logic will instead include the `LastCommit.Timestamp` in the hash of fields for generating the `signedBytes`.
  292. The cryptographic signatures included in the `CommitSig`s will then be checked against this `signedBytes` hash to authenticate the timestamp.
  293. Specifically, the `VerifyCommit` function will be updated to use this new timestamp.
  294. ### Changes to the prevote step
  295. Currently, a validator will prevote a proposal in one of three cases:
  296. * Case 1: Validator has no locked block and receives a valid proposal.
  297. * Case 2: Validator has a locked block and receives a valid proposal matching its locked block.
  298. * Case 3: Validator has a locked block, sees a valid proposal not matching its locked block but sees +⅔ prevotes for the new proposal’s block.
  299. The only change we will make to the prevote step is to what a validator considers a valid proposal as detailed above.
  300. ### Changes to the precommit step
  301. The precommit step will not require much modification.
  302. Its proposal validation rules will change in the same ways that validation will change in the prevote step.
  303. ### Changes to locking a block
  304. When a validator receives a valid proposed block and +2/3 prevotes for that block, it stores the block as its ‘locked block’ in the [RoundState.ValidBlock](https://github.com/tendermint/tendermint/blob/e8013281281985e3ada7819f42502b09623d24a0/internal/consensus/types/round_state.go#L85) field.
  305. In each subsequent round it will prevote that block.
  306. A validator will only change which block it has locked if it sees +2/3 prevotes for a different block.
  307. This mechanism will remain largely unchanged.
  308. The only difference is the addition of proposal timestamp validation.
  309. A validator will prevote nil in a round if the proposal message it received is not `timely`.
  310. Prevoting nil in this case will not cause a validator to ‘unlock’ its locked block.
  311. This difference is an incidental result of the changes to prevote validation.
  312. It is included in this design for completeness and to clarify that no additional changes will be made to block locking.
  313. ### Remove voteTime Completely
  314. [voteTime](https://github.com/tendermint/tendermint/blob/822893615564cb20b002dd5cf3b42b8d364cb7d9/internal/consensus/state.go#L2229) is a mechanism for calculating the next `BFTTime` given both the validator's current known Unix time and the previous block timestamp.
  315. If the previous block timestamp is greater than the validator's current known Unix time, then voteTime returns a value one millisecond greater than the previous block timestamp.
  316. This logic is used in multiple places and is no longer needed for proposer-based timestamps.
  317. It should therefore be removed completely.
  318. ## Future Improvements
  319. * Implement BLS signature aggregation.
  320. By removing fields from the `Precommit` messages, we are able to aggregate signatures.
  321. ## Consequences
  322. ### Positive
  323. * `<2/3` of validators can no longer influence block timestamps.
  324. * Block timestamp will have stronger correspondence to real time.
  325. * Improves the reliability of light client block verification.
  326. * Enables BLS signature aggregation.
  327. * Enables evidence handling to use time instead of height for evidence validity.
  328. ### Neutral
  329. * Alters Tendermint’s liveness properties.
  330. Liveness now requires that all correct validators have synchronized clocks within a bound.
  331. Liveness will now also require that validators’ clocks move forward, which was not required under `BFTTime`.
  332. ### Negative
  333. * May increase the length of the propose step if there is a large skew between the previous proposer and the current proposer’s local Unix time.
  334. This skew will be bound by the `PRECISION` value, so it is unlikely to be too large.
  335. * Current chains with block timestamps far in the future will either need to pause consensus until after the erroneous block timestamp or must maintain synchronized but very inaccurate clocks.
  336. ## References
  337. * [PBTS Spec](https://github.com/tendermint/spec/tree/master/spec/consensus/proposer-based-timestamp)
  338. * [BFTTime spec](https://github.com/tendermint/spec/blob/master/spec/consensus/bft-time.md)