Cortina: X-Chain Linearization

On Monday, April 3rd, 2023, the pre-release code for the Avalanche Cortina Upgrade will be published. This upgrade will activate at 11 A.M. ET (3 P.M. UTC) on Thursday, April 6th, 2023. Note, this pre-release code will ONLY work on Fuji. If you run the code on Mainnet, it will exit on startup.

Pending a successful Cortina Upgrade on Fuji, the Avalanche Mainnet activation time will be announced and the official Cortina AvalancheGo release (v1.10.0) will be published.

The Cortina Upgrade includes protocol optimizations that are not compatible with AvalancheGo versions < v1.10.0. If you run a node on Fuji, you must upgrade your software to AvalancheGo >= v1.10.0 before the activation time on Fuji. If you are a Mainnet node operator, there is no action required until the official AvalancheGo@v1.10.0 code is published.

X-Chain Linearization

The X-Chain runs Avalanche Consensus, a leaderless, DAG-based protocol that allows for the concurrent processing of non-conflicting UTXOs at high throughput without establishing a total ordering of activity. The C-Chain, P-Chain, and all Avalanche Subnets, on the other hand, run Snowman++, a chain-based, totally-ordered protocol that sequences conflict-free block production without time-based slots over thousands of participants.

The existing semantics of the X-Chain prevent or significantly complicate the integration of Avalanche Warp Messaging (AWM), the addition of complex X-Chain transactions, the enablement of state syncing, and broad exchange support. AWM integration requires Snowman++ to verify the BLS Multi-Signature of incoming messages from other Avalanche Subnets. This limitation means the X-Chain, in its current form, cannot interact with Subnets and that the DAG-based consensus it runs cannot be broadly applied to Subnets, which overwhelmingly wish to communicate seamlessly with other Subnets. The partial-ordering on the X-Chain means there is no canonical state during vertex verification (a vertex is the container for batching transactions on the X-Chain, akin to a block in a blockchain) and that vertices are, by design, processed in a different order on different nodes. Without a canonical state, interacting with shared on-chain objects, such as exchanges, and state syncing to the tip of the network (to avoid re-processing all historical activity) becomes a non-trivial and error-prone problem that takes away from the time the community could spend further evolving Subnets. Finally, the non-deterministic ordering of on-chain activity greatly impedes the ability of many legacy exchanges to integrate with the X-Chain in its current form, as most legacy exchanges are designed for totally-ordered blockchains such as Bitcoin and Ethereum, and they have difficulty reconciling balances at different points in time on a partially-ordered blockchain

Cortina migrates the X-Chain to run Snowman++ consensus and operate as a totally-ordered blockchain in a process called “linearization”. When linearization begins, it will no longer be possible to add additional vertices to the X-Chain DAG. The terminal state of the DAG, now immutable, will then be used as the genesis state of the linearized X-Chain powered by Snowman++. The transaction format used on the X-Chain and the APIs to submit transactions, fetch transaction status, and fetch balance will not change during this process, so most wallets will not need to make any changes to support this linearization event. However, explorers that support the X-Chain will need to migrate to parsing X-Chain blocks instead of parsing X-Chain vertices, which look very similar to P-Chain blocks. Linearization is seamless and should not result in any downtime on the P-Chain, C-Chain, or any Subnets. The X-Chain will, however, be briefly inaccessible.

As alluded to above, this migration paves the way for Avalanche Warp Messaging integration, novel transaction types that modify shared X-Chain state, provides a straightforward path to enable state syncing, and enables exchanges to support the X-Chain, which will contain many of the tokens used on Elastic Subnets. While it is possible to introduce a total ordering over a DAG, doing so on the X-Chain would have required a rewrite of the existing Avalanche Consensus engine and would not have been useful for any Subnets. Migrating to a single consensus engine across the entire Avalanche Network, which reduces the size of the trusted computing base and increases the leverage of existing R&D efforts, will enable faster development and more broadly-applicable innovation.

We’ve prepared a migration guide for integrators here that highlights all changes to the AvalancheGo APIs required to support Cortina.

Batched Delegator Rewards

Since the launch of the Avalanche Network, validators have had the opportunity to charge a service fee to anyone that delegates to their node. If a validator is online for 80% of a delegation period, they receive a % of the reward (the fee) earned by the delegator. The P-Chain distributes this fee as a separate UTXO per delegation period.

As the number of delegators on the network increased substantially over the last few months (up to ~80k as of 3/20/23), the number of UTXOs that a validator may receive as fees also increased substantially. This often means that a validator will end up with thousands of small UTXOs that must be aggregated to be used for anything. Tracking thousands of UTXOs in explorers and wallets also makes providing a great UX more challenging than it needs to be.

Cortina modifies how these delegation fees are distributed for all validators that begin staking after the Cortina Activation (previously staked validators will see no change). Instead of sending a fee UTXO for each successful delegation period, fees are now batched during a node’s entire validation period and are distributed when it is unstaked.

Increased C-Chain Gas Limit

Since Apricot Phase 1, the C-Chain block gas limit has been set to 8M gas. Blocks on the C-Chain are produced every ~2s, so this setting limits the max amount of gas that can be consumed every 10s to ~40M gas. The gas target for every rolling 10s window, however, is set to 15M gas. This means that when more than 15M gas is used in a 10s window, the gas price will go up (and go down when less than 15M is used). You can read more about how dynamic fees work on the C-Chain here.

Outside of limiting the amount of gas that can be consumed in some window at any gas price, the block gas limit also limits the complexity of transactions that can be issued in a single block. As different developers on Avalanche began to deploy more complex dApps, they’ve expressed that 8M gas per block isn’t enough for their use case. Cortina increases the C-Chain block gas limit to 15M gas. To avoid increasing the amount of resources required to validate the Primary Network, the gas target will remain unchanged at 15M gas per 10s.

FAQ

How do I upgrade my node?

The process to upgrade to AvalancheGo v1.10.0 is the same as any other upgrade. If you build from source, run the build script as before. If you use the pre-compiled binaries, invoke them as before. If you use the installer script, use that as before.

Once you start AvalancheGo v1.10.0, you do not need to do anything else. More information on updating a node can be found here. As a reminder, it is best practice to have a backup of your staking key/certificate.

Do I have to upgrade my node?

If you don’t upgrade your validator to v1.10.0 before the Avalanche Mainnet activation date (which will be shared in coming days), your node will be marked as offline and other nodes will report your node as having lower uptime, which may jeopardize your staking rewards.

Is there any change in hardware requirements?

No.

Will updating decrease my validator’s uptime?

No. As a reminder, you can check your validator’s estimated uptime using the info.uptime API call:

I think something is wrong. What should I do?

First, make sure that you’ve read the documentation thoroughly and checked the FAQs. If you don’t see an answer to your question, go to our Discord server and search for your question. If it has not already been asked, please post it in the appropriate channel.

SHARE //
NEXT UP//
Institutions

Republic Selects Avalanche for its Profit-Sharing Note, Gains Vista Support

Platform

Avalanche Watch: October Edition

Institutions

Avalanche Supports Citi FX Solution Under Project Guardian

Institutions

Onyx by J.P. Morgan Leverages Avalanche To Explore a New Paradigm for Portfolio Management

Platform

Avalanche Foundation Mission Statement and Reminder About System Unlocks

Developers

Web2 and Web3 Leaders Launch Codebase by Avalanche, an Accelerator Supporting Early-Stage Avalanche Projects

DEFI

Avalanche Expands Forex Market in Africa With Canza Finance’s Baki Launch

Platform

Avalanche Powers Metaverse Experience at Hong Kong FinTech Week

Gaming

5 Great Web3 Games Coming Soon

Institutions

Beneath the Surface: The Infrastructure Driving Tokenization Forward

Developers

Avalanche is Advancing Off-Chain Computation Services for Developers

Enterprise

Neal Stephenson’s LAMINA1 to Reimagine the Open Metaverse with New Layer 1 Built on Avalanche

Ava Labs Accelerates Push in India with Key Senior Hires

Platform

CCRI Finds Avalanche Emits 12x Less CO2 Than Ethereum, 300,000x Less CO2 Than Bitcoin

DEFI

The Tangible Benefits of Bringing Non-USD Stablecoins and FX On-Chain

Institutions

On-Chain Cash Management: Thematic Takeaways From Partner Discussions

Platform

7 Avalanche Use Cases

NFT

Builder Spotlight: Zeroone is Rethinking How NFT Enjoyers Create and Collect

Institutions

Navigating Tokenized Asset Investments for Institutional Buyers

NFT

Blockticity Mints $275M in Hemp and Other Product Certifications on Avalanche, Disrupting a $4.5T Industry

Developers

Introducing Firewood: A Next-Generation Database Built for High-Throughput Blockchains

Community

Builder Spotlight: Steven Gates Wants to Bring Subnets to the World

Community

Avalanche Foundation Launches Ted Yin Grant Program to Expand Open Source Technology Development

Enterprise

Korean Entertainment Giant Powers Ticketing Platform with Avalanche

Developers

Developer Spotlight: NodeKit’s Cofounder on Why Avalanche is “Unrivaled”

Platform

New Avalanche C-Chain Explorer Launches

Developers

Time to Finality (TTF): The Ultimate Metric for Blockchain Speed

Platform

Avalanche Watch: August Edition

Developers

Movement Labs Raises Pre-Seed Round, Launches Movement SDK To Reignite Web3’s Interoperable Future

Gaming

Builder Spotlight: Kam Punia’s Quest to Level Up Web3 RPGs

DEFI

Multiswap Launches with Plan to Unlock Swaps of 300+ Assets in a Single Transaction on Avalanche

Gaming

Korean Game Publisher Neowiz and Ava Labs Form Partnership

NFT

NFT Marketplace Hyperspace Makes EVM Debut on Avalanche

Enterprise

PlayThink and Loyalty Marketing Announce Plans for Web3 Ecosystem for 100M Japanese Users on Avalanche

NFT

Artist Spotlight: Three Creators Drawing the NFT Future

NFT

Artist Spotlight: Creators Expanding NFT Possibilities

DEFI

Dexalot Subnet Earns Avalanche Multiverse Incentives of up to $3 Million

Developers

Elastic Era: Considerations for Subnet Builders

Developers

Sigma Prime to Expand Security Tooling for Avalanche

Platform

Avalanche Watch: July Edition

Platform

Builder Spotlight: Blockpay Aims to Bring Blockchain Payments to the Masses

Platform

Avalanche Watch: April Edition

Core Mobile Now Supports iOS Devices

NFT

Momentum Accelerates in Avalanche NFTs

Platform

Ava Labs Announces AvaCloud: Empowering Businesses to Launch Custom, Fully Managed Blockchains in Minutes

Developers

Bware Labs’ Blast API uses Avalanche Network to Deploy Their Staking Protocol

NFT

NFT-TiX Migrates to Avalanche and Announces Global Festival Partnerships

Gaming

Avalanche Arcad3 Powers Up Web2 Gaming Studios, Arming Them to Thrive in Web3

DEFI

Struct Finance Launches Interest Rate Products for Institutions and Retail on Avalanche

NFT

Artist Roundtable: Mentors Changing the NFT World

DEFI

Uniswap, AMM Pioneer and the Largest DEX, Launches on Avalanche

NFT

Global Artist Network HUG Embraces Avalanche Foundation

NFT

Artist Spotlight: The Next Generation of NFT Photographers

DEFI

Balancer Deploys on Avalanche to Fuel Liquid Staking Growth and New DeFi Opportunities

NFT

Artist Spotlight: The Evolution of Music NFTs

Gaming

Solert Games Launches Dedicated Subnet, Debuts ‘Legends At War’ On Avalanche

Institutions

Avalanche Foundation Launches Avalanche Vista, a $50M Initiative to Pioneer the Future of Asset Tokenization

Institutions

What is Asset Tokenization: Why & Why Now?

Developers

Builder Spotlight: Eric Forgy Unveils CavalRe’s Plan to Architect the Future of Capital Markets

Platform

Avalanche Watch: June Edition

Ava Labs and AWS Bring Scalable Blockchain Solutions to Enterprises and Governments

Education

Coinbase Users Now Have the Fastest Path from Cash to DeFi with Native USDC on Avalanche

Millions of Shopify Merchants Can Now Use Avalanche NFTs through Venly

Gaming

The International Chess Federation Brings Chess into Web3 on Avalanche

Artist Spotlight: Celine Manetta Helps Airbus Celebrate with Nearly 130,000 Employees

Platform

Avalanche Warp Messaging (AWM) Launches with the First Native Subnet-to-Subnet Message on Avalanche Mainnet

NFT

Numbers Protocol: Ushering in a New Era of Digital Media Trust with Subnets

Platform

Alibaba Cloud Expands to Support Validators and Infrastructure on Avalanche Public Blockchain

Platform

Avalanche Explorer Gets a Brand New Upgrade for All P-Chain Data

Developers

Developer Spotlight: Usman Asim has Big Plans for Rust and ZKs on Avalanche

Gaming

Japanese Media Giant GREE to Build Web3 Games and Run Nodes on Avalanche

Education

Robinhood to Educate Millions of Users on All Things Avalanche

Gaming

Monsterra, P2E Game with 50M Battles Fought in First 3 Months, Expands to Avalanche

DEFI

Dexalot Launches First Central Limit Order Book Subnet on Avalanche with $1M+ in Incentives

Institutions

Intain Launches Avalanche Subnet to Usher in New Era for Multi-Trillion Dollar Securitized Finance Market

NFT

Avalanche Park X Ed Balloon Concert Series to Launch in DTLA in February with Emerging NFT Artists

Gaming

Builder Spotlight: Japanese Gaming Pioneer GREE Embraces Avalanche

Developers

The Glacier API Beta

Developers

Introducing HyperSDK: A Foundation for the Fastest Blockchains of the Future

NFT

Artist Spotlight: The Multisensory NFTs of mmoonstudios

Gaming

Rune Seeker Builds Next Generation Strategy Card Game on Avalanche

Gaming

DOS Labs Launches Subnet Built for an Alliance of Gaming Studios

Gaming

Leading Indian Game Streaming Platform, Loco, to Create Next Generation Fan Experiences on Avalanche

Platform

Ava Labs and Tencent Cloud Enable Rapid Node Deployment on the Avalanche Public Blockchain Across APAC

NFT

Artist Spotlight: Ed Balloon Blending Web2 and Web3 at Avalanche Park

Institutions

Builder Spotlight: Intain Brings Securitized Finance to a Subnet

NFT

Simon Fuller and Now United to Release Interactive Film/Album on Avalanche

Education

From the Labs: Handling Blockchain State

Gaming

TSM and Avalanche to Bring Web3 Features to 30 Million Gamers

Education

Avalanche Watch: February Edition

Education

Learn-and-Earn StackUp Campaign Now Live for Web3 Devs

Institutions

DEFYCA Aims to Bring $1.6T Private Debt Market On-Chain with Avalanche

Institutions

Avalanche Launches ‘Evergreen’ Subnets for Institutional Blockchain Deployments

Community

Ava Labs Accelerates Push in Asia with Senior Hires in Japan, Korea

Platform

Cortina: X-Chain Linearization

NFT

Moongate to Drive “Phygital” Experience with Dynamic Avalanche NFTs

Enterprise

SK Planet Announces UPTN, South Korea’s Long-Awaited Web3 Ecosystem Built on Avalanche

Gaming

Gunzilla Launches AAA Shooter on an Avalanche Subnet

NFT

The Avalanche Foundation Launches Avaissance, a Trailblazing NFT Initiative Featuring Artist Residencies for 50+ Digital Creators

Community

Developer Spotlight: Jomari Peterson Says His Biggest dApp is Yet to Come