Comparing proof of authority consensus protocols¶
GoQuorum implements the QBFT, IBFT, Raft, and Clique proof of authority (PoA) consensus protocols. PoA consensus protocols work when participants know each other and there is a level of trust between them (for example, in a permissioned consortium network).
PoA consensus protocols have faster block times and a much greater transaction throughput than the Ethash proof of work consensus protocol used on Ethereum Mainnet.
In the GoQuorum PoA consensus protocols, a group of nodes in the network act as validators (QBFT and IBFT), verifiers (Raft), or signers (Clique). Existing validators, verifiers, or signers vote to add or remove network nodes.
For the rest of this page, the term “validator” is used to refer to validators, verifiers, and signers.
Properties to consider when comparing the PoA consensus protocols are:
- Immediate finality.
- Minimum number of validators.
QBFT and Raft have immediate finality. When using QBFT and Raft there are no forks and all valid blocks get included in the main chain.
IBFT and Clique do not have immediate finality. Implementations using IBFT and Clique must be aware of forks and chain reorganizations occurring.
Minimum number of validators¶
To be Byzantine fault tolerant, QBFT and IBFT require a minimum of four validators. Byzantine fault tolerance is the ability to function correctly and reach consensus despite nodes failing or propagating incorrect information to peers.
Raft and Clique can operate with a single validator but operating with a single validator offers no redundancy if the validator fails.
Raft and Clique are more fault tolerant than QBFT and IBFT.
Raft and Clique tolerate up to half of the validators failing.
While Clique is Byzantine fault tolerant, Raft is only crash fault tolerant because the Raft leader is assumed to always act correctly.
QBFT and IBFT networks require greater than or equal to two-thirds of validators to be operating to create blocks. For example, a QBFT network of:
- Four to five validators tolerates one unresponsive validator.
- Six to eight validators tolerates two unresponsive validators.
Networks with three or fewer validators can produce blocks but do not guarantee finality when operating in adversarial environments.
We recommend using QBFT and IBFT networks with at least four nodes in production environments.
Reaching consensus and adding blocks is fastest in Raft networks, then in Clique networks. For Clique, the probability of a fork increases as the number of validators increases.
For QBFT and IBFT, the time to add new blocks increases as the number of validators increases.