From f3216e6953d125cc8184722f79397fc95bda4677 Mon Sep 17 00:00:00 2001 From: Yixin Luo <18810541851@163.com> Date: Tue, 25 May 2021 15:42:30 +0800 Subject: [PATCH] rename HasVote to ReceivedVote (#289) --- proto/consensus/types.proto | 6 +++--- spec/consensus/consensus.md | 2 +- spec/p2p/messages/consensus.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/proto/consensus/types.proto b/proto/consensus/types.proto index f7f94d91d..92f70e393 100644 --- a/proto/consensus/types.proto +++ b/proto/consensus/types.proto @@ -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; } diff --git a/spec/consensus/consensus.md b/spec/consensus/consensus.md index 53793068a..5d1526a17 100644 --- a/spec/consensus/consensus.md +++ b/spec/consensus/consensus.md @@ -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) diff --git a/spec/p2p/messages/consensus.md b/spec/p2p/messages/consensus.md index cd5ee7711..19c103750 100644 --- a/spec/p2p/messages/consensus.md +++ b/spec/p2p/messages/consensus.md @@ -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 |