STORE’s idea would improve software’s ability to run consensus with constant time, even when many validators participate in the process
- STORE opens an issue with Tendermint on GitHub, suggesting an improvement to “minimize peer-to-peer communication overload.”
- Novel idea results in throughput unaffected by the size of the network.
- Proposal eliminates replication of a “holding area” for transactions on each individual peer’s system.
- Shared transaction repository solves problem of peer-to-peer communication and opens the possibility of parallel consensus rounds by multiple block producers.
While STORE’s engineering team worked on developing BlockFin, its dynamic, fork-tolerant, and auditable consensus algorithm, early versions of the Dynamic Proof of Stake (DyPoS) protocol were built and tested on top of Tendermint.
Open-source software, Tendermint core implements the blockchain consensus engine, which ensures that the same transactions are recorded on every machine in the same order. However, when a large number of machines are involved in the consensus, Tendermint is unable to handle the burden, making it unsuitable for large deployments with thousands of peers, a situation that STORE expects to encounter when it achieves its mission of becoming zero-fee payment infrastructure for users around the globe.
After studying its research results, STORE was able to proposed an open-source idea, called Project Basil, to ensure that throughput is not affected by the size of the network.
Specifically, STORE proposes two enhancements to Tendermint core:
- Eliminate the need for relaying the incoming transactions to other peers by devising a shared mempool that guarantees total order of transactions
- Use the shared mempool to build the new block during consensus round
Since peer-to-peer communication is eliminated by this proposal, the consensus throughput remains unaffected by the number of peers.
Tendermint is designed so that validators pick transactions from a storage area called a mempool. Each validator has a mempool. The elected block proposer takes the transactions from its local mempool to build the new block and proposes the new block for voting.
The proposer needs to grab a list of validated transactions to propose the new block for voting. Since transaction validation is offloaded to the ABCI app, maintaining the list of validated transactions can be too, calling for a shared mempool with the following properties.
- Transaction order must be guaranteed as multiple peers submit validated transactions to the shared mempool
- It must be secure, so the peers can trust the entries in the shared mempool during consensus rounds
- The entries in the shared mempool must be consistent, so it offers the same view to all the peers
- The shared mempool must have high availability because the progress of consensus rounds depends on it
The creation of a shared mempool means that the peers:
- don’t add the transaction to their local mempool, but use SequenceTx() to store the signed transaction in the shared mempool
- don’t relay it to other peers
Since the transactions are ordered in the shared mempool, multiple block producers can propose multiple blocks for voting. The prevote and pre-commit phases of multiple proposed blocks can be pipelined, so the voting happens in parallel. Only the commit phase needs to be serial, so the block proposed by the current block producer is committed first, followed by the block proposed by the next producer, and so on.
Maintaining a shared mempool of ordered transactions eliminates the need for relaying the incoming transactions to all the peers. This approach adds 3 APIs to the ABCI interface and offloads the consistency and availability responsibilities to the ABCI app. This should not be perceived as a weakness, because the Tendermint core is not a standalone consensus engine and is always used in association with an ABCI app.