mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 15:07:24 +00:00
rename HasVote to ReceivedVote (#289)
This commit is contained in:
@@ -52,8 +52,8 @@ message Vote {
|
||||
tendermint.types.Vote vote = 1;
|
||||
}
|
||||
|
||||
// HasVote is sent to indicate that a particular vote has been received.
|
||||
message HasVote {
|
||||
// ReceivedVote is sent to indicate that a particular vote has been received.
|
||||
message ReceivedVote {
|
||||
uint64 height = 1;
|
||||
int32 round = 2;
|
||||
tendermint.types.SignedMsgType type = 3;
|
||||
@@ -85,7 +85,7 @@ message Message {
|
||||
ProposalPOL proposal_pol = 4;
|
||||
BlockPart block_part = 5;
|
||||
Vote vote = 6;
|
||||
HasVote has_vote = 7;
|
||||
ReceivedVote received_vote = 7;
|
||||
VoteSetMaj23 vote_set_maj23 = 8;
|
||||
VoteSetBits vote_set_bits = 9;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ example,
|
||||
- Nodes gossip to nodes lagging in blockchain height with block
|
||||
[commits](https://godoc.org/github.com/tendermint/tendermint/types#Commit)
|
||||
for older blocks.
|
||||
- Nodes opportunistically gossip `HasVote` messages to hint peers what
|
||||
- Nodes opportunistically gossip `ReceivedVote` messages to hint peers what
|
||||
votes it already has.
|
||||
- Nodes broadcast their current state to all neighboring peers. (but
|
||||
is not gossiped further)
|
||||
|
||||
@@ -95,9 +95,9 @@ and what prevotes for the re-proposed block the process has.
|
||||
| proposal_pol_round | int32 | | 2 |
|
||||
| proposal_pol | bitarray | | 3 |
|
||||
|
||||
### HasVote
|
||||
### ReceivedVote
|
||||
|
||||
HasVote is sent to indicate that a particular vote has been received. It contains height,
|
||||
ReceivedVote is sent to indicate that a particular vote has been received. It contains height,
|
||||
round, vote type and the index of the validator that is the originator of the corresponding vote.
|
||||
|
||||
| Name | Type | Description | Field Number |
|
||||
@@ -144,6 +144,6 @@ Message is a [`oneof` protobuf type](https://developers.google.com/protocol-buff
|
||||
| proposal_pol | [ProposalPOL](#proposalpol) | | 4 |
|
||||
| block_part | [BlockPart](#blockpart) | | 5 |
|
||||
| vote | [Vote](#vote) | | 6 |
|
||||
| has_vote | [HasVote](#hasvote) | | 7 |
|
||||
| received_vote | [ReceivedVote](#ReceivedVote) | | 7 |
|
||||
| vote_set_maj23 | [VoteSetMaj23](#votesetmaj23) | | 8 |
|
||||
| vote_set_bits | [VoteSetBits](#votesetbits) | | 9 |
|
||||
|
||||
Reference in New Issue
Block a user