Abstract
Digital money can be implemented efficiently by avoiding consensus. However, no-consensus implementations have drawbacks, as they cannot support smart contracts and cannot deal with conflicting transactions. We present a novel protocol that combines the benefits of an asynchronous, broadcast-based digital currency with the capacity to perform consensus. This is achieved by selectively performing consensus a posteriori—only when absolutely necessary. Our on-demand consensus comes at the price of restricting Byzantine participants to be less than a one-fifth minority ($n > 5f$), which is the optimal threshold for this architecture. We formally prove the correctness of our system and present an open-source implementation that inherits many features from the Ethereum ecosystem.
Introduction
Traditional blockchains like Bitcoin and Ethereum suffer from a fundamental bottleneck: the requirement for total ordering. In these systems, every transaction, regardless of whether it is related to others, must be placed in a strict sequence and verified by every node. This serial processing is analogous to forcing every car in a city to wait for a single traffic light, even if they are traveling on opposite sides of town.
Recent research into "no-consensus" systems (such as FastPay or Astro) demonstrated that nearly unbounded throughput is possible by processing independent transactions in parallel using simple broadcast primitives. However, these systems face a significant limitation: they cannot handle conflicts, such as double-spending, or general smart contracts where multiple users update the same state simultaneously. When a conflict occurs, these systems typically deadlock. Consensus on Demand (CoD) resolves this by providing a hybrid path that maintains high speed for the majority of transactions while retaining the robust conflict resolution of traditional blockchains.
The CoD Protocol Architecture
CoD acts as a "wrapper" protocol that manages two distinct execution paths for any given transaction:
1. The Fast Path (Broadcast)
When a client submits a transaction, servers perform a "best-effort" broadcast. If a server observes a specific quorum of acknowledgments ($> \frac{n+3f}{2}$) for a transaction, it accepts it immediately. This path is leaderless, requires only a single round-trip, and allows for massive horizontal scaling. It is the default route for the vast majority of non-conflicting payments.
2. The Slow Path (Consensus)
If a server detects conflicting transactions or cannot reach a fast-path quorum within a specific timeframe, it "demands" consensus. The server proposes the most popular transaction it has observed to an underlying consensus instance (such as PBFT or an external smart contract). This path ensures that even in the presence of contention, the network eventually reaches a single, consistent state.
The $5f$ Threshold: The Price of Asynchrony
To ensure that a transaction accepted on the Fast Path is never overturned by the Slow Path in a completely asynchronous network, the protocol requires a stricter fault tolerance threshold than standard consensus. While traditional Byzantine Fault Tolerant (BFT) systems require $n > 3f$ (where $f$ is the number of Byzantine nodes), CoD requires $n > 5f$.
This means that less than one-fifth of the participants can be malicious. This is a fundamental theoretical boundary; the paper proves that this $5f$ threshold is necessary to guarantee safety when combining asynchronous fast-path broadcasts with a consensus fallback. This is essentially the "price" paid for the ability to bypass the consensus bottleneck during normal operation.
Implementation and Compatibility
The authors developed a functional prototype by modifying go-ethereum. This implementation integrates seamlessly with the existing Ethereum ecosystem, supporting standard wallets and network discovery protocols. In this prototype, a Solidity smart contract can even serve as the "Slow Path" coordinator.
Because the CoD wrapper is consensus-agnostic, it is highly modular. Developers can plug in various consensus algorithms for the slow path, and CoD will shield that algorithm from the bulk of the transaction load, only invoking it when conflicts arise.
Key Results and Insights
- Safety and Liveness: Mathematical proofs confirm that the system maintains Validity, Agreement, and Termination. Even if some nodes accept a transaction via the fast path while others trigger the slow path, the system will converge on a single outcome.
- Leaderless Resilience: By utilizing a leaderless fast path, the system is naturally resilient to "Liveness" attacks that target specific nodes to stall the network.
- Scalability: For non-conflicting transactions, throughput scales linearly with the number of nodes, effectively removing the consensus bottleneck for standard peer-to-peer transfers.
Limitations and Future Work
Despite its performance benefits, CoD introduces new challenges. The $n > 5f$ requirement is more restrictive than the $n > 3f$ standard used by protocols like Tendermint, which may be a deterrent for smaller validator sets. Additionally, the system must be protected against "Slow Path Abuse," where a malicious actor intentionally submits conflicting transactions to force the network into the more expensive consensus routine. Future research is required to design economic incentives, such as dynamic fee structures, to discourage unnecessary triggers of the consensus path.
Summary updated