CometBFT

Also known as: Tendermint

On this page 7

CometBFT is an open-source Byzantine fault tolerant consensus engine that replicates an application across a set of validators and finalizes each block as soon as more than two thirds of voting power sign it. Within consensus mechanisms in Crypto & blockchain, it is the best-known production implementation of classical BFT consensus combined with proof of stake, and it powers the Cosmos Hub and most chains built with the Cosmos SDK.

CometBFT is the direct continuation of Tendermint Core, the engine designed by Jae Kwon and Ethan Buchman. In 2023 maintenance moved to a fork under the new name, so documentation, code and older chains still use the name Tendermint for the same algorithm.

How CometBFT reaches agreement on a block

CometBFT decides each block height through one or more rounds, and each round has three steps: propose, prevote and precommit. A block is committed only when a validator sees precommits from more than two thirds of the total voting power for the same block.

A proposer chosen by a weighted round-robin over voting power broadcasts a candidate block. Validators then send prevotes for that block or for nil, and once a validator sees more than two thirds of prevotes for one block, it locks on that block and sends a precommit. The locking rule prevents two different blocks from being committed at the same height, even when messages arrive late or out of order.

StepWhat validators doThreshold to advance
ProposeThe designated proposer broadcasts a blockProposal received or timeout
PrevoteEach validator votes for the block or nilMore than 2/3 prevotes seen
PrecommitValidators locked on the block precommit itMore than 2/3 precommits seen
CommitThe block is final and executed by the applicationImmediate after precommit quorum
Steps of a CometBFT consensus round

If a round fails, for example because the proposer is offline, validators move to the next round with a new proposer and gradually longer timeouts. This design makes the protocol partially synchronous: it remains safe at all times and resumes progress once network delays fall within bounds.

Separation of consensus and application through ABCI

CometBFT handles only networking, ordering and finality, while the state machine that defines balances, smart contracts or governance runs in a separate application. The two communicate through the Application Blockchain Interface (ABCI), which lets developers write the application in any programming language.

The interface evolved into ABCI++, completed in the 0.38 release line. It gives the application hooks at every step of block production, which enables features such as vote extensions for oracle prices and custom block construction.

MethodWhen it is calledTypical use
PrepareProposalThe proposer builds a blockReorder or filter transactions
ProcessProposalValidators receive a proposalReject invalid blocks early
ExtendVoteBefore a precommit is sentAttach oracle prices or other data
VerifyVoteExtensionAnother validator’s extension arrivesValidate attached data
FinalizeBlockAfter the block is committedExecute transactions and update state
CheckTxA transaction enters the mempoolBasic validity and spam filtering
Main ABCI++ methods and their role

Fault tolerance and finality guarantees

CometBFT is safe as long as less than one third of voting power is Byzantine, meaning faulty or malicious. Under that assumption, two honest validators never commit different blocks at the same height, so the chain offers deterministic, instant finality rather than the probabilistic finality of proof of work.

The engine favors safety over liveness. If one third or more of voting power goes offline, the chain halts instead of forking, and it resumes once enough validators return. Cosmos chains have experienced such halts, which operators usually resolve through coordinated restarts rather than reorganizations.

Misbehavior is detectable. A validator that signs two different blocks at the same height produces evidence of equivocation, which CometBFT passes to the application. In Cosmos SDK chains, that evidence triggers slashing of the validator stake and tombstoning of its key.

How CometBFT compares with other consensus designs

CometBFT belongs to the family of Practical Byzantine fault tolerance protocols but simplifies leader changes by rotating the proposer every height. The comparison below places it next to designs that appear elsewhere in consensus discussions.

PropertyCometBFTNakamoto consensusEthereum proof of stake
FinalityInstant, deterministicProbabilisticEconomic finality after two epochs
Fault toleranceBelow 1/3 ByzantineBelow 1/2 hash rateBelow 1/3 stake for finality
Behavior under partitionHalts rather than forksForks and reorganizesContinues, finality may stall
Practical validator countTens to a few hundredOpen, unlimited minersHundreds of thousands
Typical block timeAbout 1 to 7 secondsAbout 10 minutes12 seconds
CometBFT compared with related consensus approaches

The main trade-off is message complexity. Every validator gossips votes to the others, so communication grows roughly with the square of the validator count. For this reason, CometBFT chains usually cap the active set; the Cosmos Hub, for instance, runs about 180 active validators.

Practical deployment and operational risks

Operating a CometBFT validator requires attention to key management and uptime, because both double signing and long downtime can lead to penalties at the application level.

  • Never run two validator instances with the same key; failover setups without a remote signer are a common cause of double-sign slashing.
  • Use sentry node architecture to hide the validator behind public full nodes and reduce denial-of-service exposure.
  • Tune timeout parameters carefully; aggressive values shorten blocks but increase failed rounds on slow networks.
  • Plan coordinated upgrades, because all validators must switch binaries at the same height.

Light clients are a further strength. Because each committed block carries signatures from more than two thirds of voting power, a light client can verify headers cheaply, which is the foundation of the Inter-Blockchain Communication protocol (IBC) between Cosmos chains.

The idea in brief

CometBFT is the voting system that lets a group of computers agree on the next page of a shared ledger. A page is accepted only when more than two thirds of the voters approve it, and once accepted it never changes.

Think of a committee that must sign a document. If too many members are absent, the committee simply waits rather than letting a minority decide. That makes the system slower to recover in a crisis but very reliable once a decision is made.

A practical scenario

A team launches an application-specific chain for a decentralized exchange using the Cosmos SDK on top of CometBFT. They start with 60 validators, set the target block time near two seconds and use the PrepareProposal hook to order trades fairly within each block.

Traders see their orders final within one block, so the exchange can settle positions without waiting for extra confirmations. When an outage takes 25 validators offline during a cloud provider incident, more than one third of voting power disappears and the chain stops producing blocks for about 40 minutes. No conflicting blocks appear, and once operators restore their nodes, block production resumes without any reorganization or lost trades.