* Update docs references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update DOCS_README to reflect current reality Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update vuepress config with current versions and updated discussions link Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update generated docs versions Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update docs build to use temp folder instead of home Signed-off-by: Thane Thomson <connect@thanethomson.com> * Document build-docs Makefile target Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add serve-docs Makefile target to serve local build of docs Signed-off-by: Thane Thomson <connect@thanethomson.com> * Ensure 404 page is copied during docs build Signed-off-by: Thane Thomson <connect@thanethomson.com> * Redirect /master/ to /main/ Signed-off-by: Thane Thomson <connect@thanethomson.com> * Attempt to resolve #7908 Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update OpenAPI references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update CHANGELOG references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update Docker readme references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update UPGRADING references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update package-specific documentation references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update spec references from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update all code comment references to docs site from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Build v0.34.x as "latest" Signed-off-by: Thane Thomson <connect@thanethomson.com> * Explicitly mark v0.34 docs as latest in version selector Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update all links from docs.tendermint.com/main to docs.tendermint.com/latest Signed-off-by: Thane Thomson <connect@thanethomson.com> * ci: Redeploy docs on pushes to v0.34.x Signed-off-by: Thane Thomson <connect@thanethomson.com> * Temporarily copy spec directory into docs while building Signed-off-by: Thane Thomson <connect@thanethomson.com> * Add nav link to main and clearly mark as unstable Signed-off-by: Thane Thomson <connect@thanethomson.com> * Revert to only publishing docs in nav for v0.34 and v0.33 with no latest Signed-off-by: Thane Thomson <connect@thanethomson.com> * Link to docs.tendermint.com/v0.34 from RFCs Signed-off-by: Thane Thomson <connect@thanethomson.com> * Rather just use main for all docs.tendermint.com references on main branch Signed-off-by: Thane Thomson <connect@thanethomson.com> * Rename GitHub tree links from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update link for ABCI Rust client Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update github links from master to main Signed-off-by: Thane Thomson <connect@thanethomson.com> * Update badges in root readme Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove codecov badge since we do not use it any more Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove Java and Kotlin tutorials Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove specs from docs build Signed-off-by: Thane Thomson <connect@thanethomson.com> * Migrate spec links to GitHub repo from docs site Signed-off-by: Thane Thomson <connect@thanethomson.com> * Remove references to non-existent PEX reactor spec Signed-off-by: Thane Thomson <connect@thanethomson.com> * Fix linting badge in README Signed-off-by: Thane Thomson <connect@thanethomson.com> Signed-off-by: Thane Thomson <connect@thanethomson.com>
9.5 KiB
order
| order |
|---|
| 7 |
Consensus
Channel
Consensus has four separate channels. The channel identifiers are listed below.
| Name | Number |
|---|---|
| StateChannel | 32 |
| DataChannel | 33 |
| VoteChannel | 34 |
| VoteSetBitsChannel | 35 |
Message Types
Proposal
Proposal is sent when a new block is proposed. It is a suggestion of what the next block in the blockchain should be.
| Name | Type | Description | Field Number |
|---|---|---|---|
| proposal | Proposal | Proposed Block to come to consensus on | 1 |
Vote
Vote is sent to vote for some block (or to inform others that a process does not vote in the
current round). Vote is defined in the
Blockchain
section and contains validator's
information (validator address and index), height and round for which the vote is sent, vote type,
blockID if process vote for some block (nil otherwise) and a timestamp when the vote is sent. The
message is signed by the validator private key.
| Name | Type | Description | Field Number |
|---|---|---|---|
| vote | Vote | Vote for a proposed Block | 1 |
BlockPart
BlockPart is sent when gossiping a piece of the proposed block. It contains height, round and the block part.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block. | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| part | Part | A part of the block. | 3 |
NewRoundStep
NewRoundStep is sent for every step transition during the core consensus algorithm execution. It is used in the gossip part of the Tendermint protocol to inform peers about a current height/round/step a process is in.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| step | uint32 | 3 | |
| seconds_since_start_time | int64 | 4 | |
| last_commit_round | int32 | 5 |
NewValidBlock
NewValidBlock is sent when a validator observes a valid block B in some round r, i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r. It contains height and round in which valid block is observed, block parts header that describes the valid block and is used to obtain all block parts, and a bit array of the block parts a process currently has, so its peers can know what parts it is missing so they can send them. In case the block is also committed, then IsCommit flag is set to true.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| block_part_set_header | PartSetHeader | 3 | |
| block_parts | int32 | 4 | |
| is_commit | bool | 5 |
ProposalPOL
ProposalPOL is sent when a previous block is re-proposed. It is used to inform peers in what round the process learned for this block (ProposalPOLRound), and what prevotes for the re-proposed block the process has.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| proposal_pol_round | int32 | 2 | |
| proposal_pol | bitarray | 3 |
ReceivedVote
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 |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| type | SignedMessageType | 3 | |
| index | int32 | 4 |
VoteSetMaj23
VoteSetMaj23 is sent to indicate that a process has seen +2/3 votes for some BlockID. It contains height, round, vote type and the BlockID.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| type | SignedMessageType | 3 |
VoteSetBits
VoteSetBits is sent to communicate the bit-array of votes a process has seen for a given BlockID. It contains height, round, vote type, BlockID and a bit array of the votes a process has.
| Name | Type | Description | Field Number |
|---|---|---|---|
| height | int64 | Height of corresponding block | 1 |
| round | int32 | Round of voting to finalize the block. | 2 |
| type | SignedMessageType | 3 | |
| block_id | BlockID | 4 | |
| votes | BitArray | Round of voting to finalize the block. | 5 |
Message
Message is a oneof protobuf type.
| Name | Type | Description | Field Number |
|---|---|---|---|
| new_round_step | NewRoundStep | Height of corresponding block | 1 |
| new_valid_block | NewValidBlock | Round of voting to finalize the block. | 2 |
| proposal | Proposal | 3 | |
| proposal_pol | ProposalPOL | 4 | |
| block_part | BlockPart | 5 | |
| vote | Vote | 6 | |
| received_vote | ReceivedVote | 7 | |
| vote_set_maj23 | VoteSetMaj23 | 8 | |
| vote_set_bits | VoteSetBits | 9 |