The eCash development team has been making significant progress on Avalanche Pre-Consensus, a technology that will dramatically improve transaction finality, prevent transaction double spends, and enhance network scalability. This blog post will walk you through the current development milestones, what has been completed, and whatโs still in progress. Whatโs Been Achieved So Far
The following milestones have been successfully reached: โ Transaction Voting for the Avalanche Core The Avalanche ne
In Section 2 of the Bitcoin whitepaper, Satoshi mentions the need for nodes to agree on which transaction was seen first. This underappreciated quote foreshadows eCash's Pre-Consensus integration.
Read more about Avalanche-enhanced PoW in our latest blog ๐
eCash
--
Satoshiโs Hint: How the Bitcoin Whitepaper Foreshadowed eCash Pre-Consensus
Most people who read the Bitcoin whitepaper focus on its explanation of Proof-of-Work (PoW) and how blocks are chained together. Thatโs understandable, as itโs the core innovation. But buried in plain sight is a lesser-known line that hints at something quite important: the notion that nodes need to agree on a transaction being the first seen long before being confirmed in a block. In Section 2, Satoshi writes: โThe payee needs proof that at the time of each transaction, the majority of nodes agreed it was the first received.โย The paper then goes on to describe how this proof is ultimately provided by mining and block confirmations over the course of minutes and hours. But he didnโt describe what kind of proof a payee should expect to accept instant payments, or how nodes would coordinate to agree on the order of transactions in real time. Thatโs a different kind of consensus which needs to happen live on the network. Satoshi didnโt define how this would work. But by stating this need in the paper, he acknowledged a necessity in Bitcoin that still exists today, even on other PoW blockchains.
The First Seen Rule In early Bitcoin, there was a simple node policy to handle conflicting transactions, known as the โfirst seen ruleโ. When two transactions tried to spend the same input (i.e., a double spend), nodes would accept and relay the first one they saw and reject any conflicting ones that arrived later. This works under the assumption that honest nodes mostly see the same transaction first, making it a cheap way to filter out double spends. But in practice, this is not a reliable solution. An attacker could exploit network latency or partitioning to ensure different parts of the network saw different transactions first, making it impossible for the network as a whole to agree on which of them is the legitimate one. This makes it possible to double-spend coins in 0-confirmation payment environments. The first seen rule is local, subjective, and easily manipulated. In short, it lacks global coordination. Thatโs why itโs not sufficient for secure instant payments. It is important for solutions to work even in adversarial conditions, so there was always a need for a solid way to come to a network-wide agreement on which transaction came first, not just what one node happened to see first. Hybrid Consensus With the breakthrough invention of the Avalanche consensus mechanism in 2018, this need could finally be met in an elegant way. This new protocol allows nodes to rapidly reach an agreement on which transactions came first using randomized polling and probabilistic consensus. This gives users near-instant assurance that their payment is accepted and safe from double spends, even before mining takes place. The eCash project is the only PoW network that is actually implementing this protocol today and one of only two projects that leverage Avalanche consensus at allโthe other being the AVAX proof-of-stake (PoS) blockchain. By integrating Avalanche with its core Nakamoto PoW, eCash enables near-instant consensus on transaction order and validity. This improves user experience, strengthens security, enables scaling, and completes Bitcoinโs payment use-case. The idea of improving the payment experience through faster transaction finality has been part of Bitcoin ABCโs vision since the beginning of the project in 2017. Recognizing that waiting for block confirmations limits usability, especially in real-world payments, the team introduced the concept of Pre-Consensus as a mechanism for nodes to agree on transaction validity and order before mining occurs. This lays the foundation for a more responsive peer-to-peer cash system while aligning directly with Satoshiโs insight. With the advent of the Avalanche whitepaper, Bitcoin ABC immediately recognized that it provided the capabilities needed to realize this vision. By integrating it into eCash, the team created a hybrid consensus model that fuses Nakamoto PoW with Avalanche coordination. But unlike typical Masternode-based hybrids, Avalanche on eCash doesnโt delegate power to privileged nodes, nor are its stake proofs part of the transaction validation process. For an eCash node to join the Avalanche quorum, it must first bootstrap using PoW to get an objective state of the network. This PoW bootstrapping allows nodes to join the Avalanche-validating quorum in a trustless decentralized manner โ a key advantage over purely Proof-of-Stake systems that require trusted bootstrapping. The integration is optional and enhances eCashโs PoW itself through probabilistic agreement among all participating nodes. This model is best described as Avalanche-enhanced Proof-of-Work (APoW). It maintains the trustless nature of mining while adding real-time coordination to improve security, user experience, and scalability. With APoW, eCash achieves what many chains have attempted: a fast, secure, and decentralized payment layer that remains faithful to Bitcoinโs original principles while pushing its capabilities forward. The Two Pillars of Instant Finality Avalanche on eCash operates through two core layers: Pre-Consensus and Post-Consensus. Pre-Consensus allows the network to agree on transaction ordering in real time, while Post-Consensus ensures that blocks align with what was previously agreed upon. The two work together: Pre-Consensus provides fast coordination, but it is Post-Consensus that gives the network the power to enforce those decisions by rejecting blocks containing transactions that conflict with those already finalized by Pre-Consensus. Without Post-Consensus, thereโs no mechanism to uphold what was finalized on the Pre-Consensus layer. Avalanche Post-Consensus works by having nodes finalize the order and validity of blocks after theyโve been mined. Once a block is created through PoW, Avalanche is used to poll other nodes and reach an agreement that this block is the correct one to build on. This adds an extra layer of certainty beyond the Nakamoto consensus, helping prevent chain reorgs giving eCash 51% attack protection. It also acts as the foundation for Pre-Consensus. It doesn't replace mining but strengthens the confidence in each block's place in the chain. Pre-Consensus takes this idea further by applying the same mechanism to each transaction before they even enter a block. Instead of waiting ten minutes for a miner to confirm which transaction came first by including it in a block, nodes can already coordinate and agree on transaction ordering using Avalanche polling. This means that if two conflicting transactions are broadcast, the network can quickly converge on which one to accept as valid, long before a block is found. It brings resolution within 2 seconds at the mempool level, providing near-instant feedback and protecting against double spends in real-time. A practical example for end-users is deposit times on exchanges and multicoin wallets. Currently, eCash (XEC) users enjoy having deposits credited with just 1 confirmation. Compared to Bitcoin (BTC), which requires about 4 confirmations before exchanges feel safe enough to credit deposits, eCashโs Post-Consensus finality already surpasses transaction settlement speeds of most chains. This competitive speed of about 10 minutes will soon be surpassed with eCashโs record-breaking 2-second finality time once Pre-Consensus goes live. This finality speed is unheard of for fully trustless PoW blockchains. Scaling eCash with Avalanche
Pre-Consensus isnโt just about instant transaction finality. Itโs a foundational shift that enables eCash to scale far beyond traditional Bitcoin architecture. At the heart of this is how Avalanche handles the global state. Unlike Nakamoto Consensus, which relies on block production to resolve conflicts, Avalanche allows nodes to coordinate on state transitions far more rapidly. One of its most powerful implications is how it enables real-time processing. In the case of block generation, nodes use Avalanche to coordinate on which transactions to include in a block before a newly mined block is broadcast, so theyโre already aligned on what a valid block should contain and how it would look like. This means that by the time a miner finds a new block, most nodes already agree on 99% of the blockโs contents. Thereโs no need for every node to process the block in the tiny time window after it's mined, as it enables processing the block during the entire 10-minute block finding process. This drastically reduces latency and computational overhead, making it possible to handle much larger blocks without sacrificing network responsiveness. In effect, Avalanche allows eCash to decouple consensus from mining speed. It transforms block production into a finalization step rather than a coordination bottleneck. This architecture lays the groundwork for scaling to gigabyte-sized or even terabyte-sized blocks in the future. Enabling massive transaction throughput while keeping processing efficient and confirmation times low. Sometimes, visionary ideas take years to materialize. What Satoshi hinted at in Section 2 of the Bitcoin whitepaperโa need for proof that the network agreed on a transactionโs order before confirmationโis now being realized on eCash. This is a continuation of Bitcoinโs rules, made possible by another groundbreaking invention that is Avalanche. As we revisit the whitepaper with fresh eyes, we find that some of its most powerful ideas have always lingered in plain sight and have never been fully explored until now. Originally Published: https://e.cash/blog/satoshis-hint
Satoshiโs Hint: How the Bitcoin Whitepaper Foreshadowed eCash Pre-Consensus
Most people who read the Bitcoin whitepaper focus on its explanation of Proof-of-Work (PoW) and how blocks are chained together. Thatโs understandable, as itโs the core innovation. But buried in plain sight is a lesser-known line that hints at something quite important: the notion that nodes need to agree on a transaction being the first seen long before being confirmed in a block. In Section 2, Satoshi writes: โThe payee needs proof that at the time of each transaction, the majority of nodes ag
๐ Missed the live session? No worries, the highly anticipated SwapSpace Huddle podcast featuring our founder, Amaury Sรฉchet, is now live on Spotify! ๐
๐ง Tune in here: open.spotify.com/episode/3tpsxaCQxl45ZlkQyr5fTP?nd=1&dlsi=406cd2c4913f4726
What's new: โ Support for creating $XEC Buy Offers ๐ฐ โ Support for all major fiat currencies ๐ฑ โ Revamped filters on Home screen ๐ฑ โ Fiat value display on Wallet screen ๐ต โ Simplified buyerโs security deposit process ๐ค โ Unified offer detail filters across screens ๐ โ Misc. UI improvements ๐จ โ Bug fixes ๐
โช๏ธ Full release notes: github.com/Local-eCash/local-ecash/releases/tag/1.2.0
The eCash $XEC dev team is making major strides on Avalanche Pre-Consensus! This upgrade will bring instant transaction finality, prevent double spends, and boost network scalability. ๐ฅ๐ ๏ธ
Check out the latest milestones, completed work, and what's next: ๐
eCash
--
Sneak Peek: Avalanche Pre-Consensus on eCash
The eCash development team has been making significant progress on Avalanche Pre-Consensus, a technology that will dramatically improve transaction finality, prevent transaction double spends, and enhance network scalability. This blog post will walk you through the current development milestones, what has been completed, and whatโs still in progress. Whatโs Been Achieved So Far
The following milestones have been successfully reached: โ Transaction Voting for the Avalanche Core The Avalanche network now has the ability to poll and vote on transactions. Previously, it only voted on blocks and proofs. This is the fundamental building block for Pre-Consensus, allowing the network to reach an agreement on which transactions should be included in blocks. โ Store and Poll for Conflicting/Rejected by Policy Transactions Since users can send multiple transactions attempting to spend the same UTXO (double spending), the network needs a way to handle these conflicts. Currently, nodes accept only the first-seen transaction and resolve conflicts only when a block is mined. With this milestone, nodes can track conflicting transactions and adjust their acceptance based on Avalanche votesโfinalizing transactions before theyโre included in a block. โ Reject Blocks that Contain Transactions Conflicting with Avalanche Votes To ensure consensus integrity, blocks containing transactions that contradict the networkโs finalized decisions should be rejected. Since post-consensus already rejects invalid blocks, this mechanism extends its functionality to enforce transaction-level finalization and prevent double-spends. Ongoing Development
With these key milestones complete, development is now focused on finalizing the next critical steps: ๐ Accepting or Rejecting a Transaction According to the Vote Status This is the core logic that enables nodes to make decisions on which transactions to accept and which to reject, as well as clear out any rejected ones (and subsequent conflicts) to maintain network efficiency. ๐ Storing and Mining Finalized Transactions Miners must ensure they only include finalized transactions in their blocks and never include a conflicting transaction. Finalized transactions must be remembered permanently so their finalization status is never reversed. Full blocks need to be managed gracefully so that the node can handle high transaction volume while also ensuring that finalized transactions are tracked. This method of incrementally building the block template as transactions are finalized prevents conflicts and improves performance by making block construction more efficientโa huge improvement for scaling. Learn more at Avalanche.cash The Bigger Picture: What Avalanche Pre-Consensus Brings to eCash
With Avalanche Pre-Consensus, the eCash Avalanche network can agree on individual transactions before they get mined into blocks. This ensures that transactions are finalized in real time, preventing conflicts and improving overall reliability. For businesses, this means instant payment confirmations. For users, it means seamless deposits without waiting for block confirmations. And for the entire eCash network, it lays the foundation for unparalleled efficiency and scalability. Hereโs why this is a game-changer: ๐ Instant Transaction Finality: Currently, Post-consensus finalizes transactions after a single block is found, due to reorg being prevented by the Avalanche consensus. Pre-consensus validates individual $XEC transactions before they are included in a block, reducing confirmation time for a transaction from the current 10 minutes to less than 3 seconds - thatโs more than 100 times faster than Proof of Work-only cryptos like Bitcoin. โก Real-time Transaction Processing: Transaction throughput increases since the network will not have to wait for a block to validate transactions. Real-time Transaction Processing allows eCash nodes to prepare for each block before confirmation, significantly reducing the amount of work required when a block comes in. The Final Stretch The journey toward Avalanche Pre-Consensus has been a tough engineering challenge, but weโve overcome major hurdles and are now closer than ever to achieving this groundbreaking feat. With Avalanche Pre-Consensus, eCash is on track to become the fastest and most scalable layer 1 blockchain with the ability to extend its capabilities via subnets. Stay tuned as we bring this groundbreaking upgrade to lifeโinstant transactions are just around the corner!
Originally Published: https://e.cash/blog/sneak-peek-avalanche-pre-consensus-on-ecash