Add full vote to BeginBlock

This commit is contained in:
folex
2019-09-06 11:20:28 +02:00
parent a13a4b8c77
commit 2a1d0542f3
7 changed files with 163 additions and 3 deletions

View File

@ -265,8 +265,7 @@ ResponseCommit requestCommit(RequestCommit requestCommit) {
### BeginBlock
The BeginBlock request can be used to run some code at the beginning of
every block. It also allows Tendermint to send the current block hash
and header to the application, before it sends any of the transactions.
every block. It also allows Tendermint to send the current block hash, header and commit of the last block to the application, before it sends any of the transactions.
The app should remember the latest height and header (ie. from which it
has run a successful Commit) so that it can tell Tendermint where to

View File

@ -449,6 +449,7 @@ Commit are included in the header of the next block.
- `Validator (Validator)`: A validator
- `SignedLastBlock (bool)`: Indicates whether or not the validator signed
the last block
- `FullVote (Vote)`: Validator's vote
- **Usage**:
- Indicates whether a validator signed the last block, allowing for rewards
based on validator availability
@ -482,7 +483,7 @@ Commit are included in the header of the next block.
- **Fields**:
- `Round (int32)`: Commit round.
- `Votes ([]VoteInfo)`: List of validators addresses in the last validator set
with their voting power and whether or not they signed a vote.
with their voting power, votes and whether or not they signed a vote.
### ConsensusParams