add vote fields back

This commit is contained in:
William Banfield
2021-08-11 11:40:35 -04:00
parent 2bbd9f4a16
commit 246b813315

View File

@@ -190,15 +190,13 @@ type Vote struct {
Type tmproto.SignedMsgType `json:"type"`
Height int64 `json:"height"`
Round int32 `json:"round"` // proposal/vote round
ForBlock bool `json:"for_block"` // false if vote is nil.
BlockID BlockID `json:"block_id"` // zero if vote is nil.
ValidatorIndex int32 `json:"validator_index"`
ValidatorAddress Address `json:"validator_address"`
Signature []byte `json:"signature"`
}
```
`BlockID` is also dropped as it is also stored by all validators.
`ValidatorIndex` is all that is needed to determine `ValidatorAddress` so it is dropped as well.
### New consensus parameters
The proposer-based timestamp specification includes multiple new parameters that must be the same among all validators.