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//
Art & Culture

Suntory Group to Launch Tokenized Premium Malt’s Beer on Avalanche Blockchain

Institutions

BlackRock Launches Digital Liquidity Fund BUIDL on Avalanche via Securitize

Enterprise

Can Blockchain Unlock True Fan Ownership in Sports Through Tokenized Equity?

Community

MeWe to Launch Privacy-Focused Decentralized Social Network on Avalanche

Events

Summit Series: Why We Chose Latin America for Avalanche Summit

Enterprise

StraitsX Leverages AvaCloud and Avalanche to Simplify Cross-Border Payments in Southeast Asia

Events

Summit Highlight Series: Gaming Goes Mainstream

Enterprise

Uptop Leverages Avalanche to Transform Fan Loyalty

Institutions

AvaCloud Selected to Participate in Kinexys by J.P. Morgan’s Project EPIC – Exploring Privacy and Identity Solutions for Institutions

AvaCloud

AvaCloud Ushers in New Era of Blockchain Privacy with Acquisition of EtraPay and Launch of Privacy Suite

Enterprise

Blockticity Develops Global Trade Verification Standard Using Avalanche

Education

Startup Incubator Codebase Announces Season 2 Cohort

Gaming

FCHAIN Launches as an Avalanche Layer 1 to Power Faraway Gaming Ecosystem

Community

The Arena’s Comeback: SocialFi App on Avalanche Secures $2M Pre-Seed Funding and Plans Mainstream Expansion

Community

Avalanche Summit Admission Is Free for Developers in Latin America. Here’s Why:

Community

Between the Sessions: What to Do and See at Avalanche Summit LATAM

Institutions

Colombian Neobank Littio Leverages OpenTrade to Offer Interest-Bearing USD Accounts to Local Customers via Avalanche Network

Gaming

3thix and Avalanche Unite to Democratize Web3 Gaming Economy For Advertisers and Improve Experience For Consumers

Platform

Retro9000, a $40M Grant Program, Rewards Developers Building Avalanche L1s

Platform

Building on Avalanche9000

Institutions

Legendary Pressman Film Leverages Republic Investment Platform and Avalanche Network to Transform Independent Film Financing

Institutions

ParaFi Tokenizes Fund on Securitize Platform with Avalanche

Platform

GoGoPool: Driving Security, Community, And Liquidity On Avalanche

Developers

The Avalanche Foundation Announces the infraBUIDL() Program

Art & Culture

Tixbase Enters Exclusive Partnership with PASSO to Revolutionize Ticketing with Avalanche Blockchain Technology

Institutions

Franklin Templeton Launches Tokenized Money Market Fund BENJI on the Avalanche Network

Art & Culture

TYB and Shopify Bring Web3 Loyalty Platform to Major Consumer Brands, Powered by Avalanche

DEFI

Agora Launches Its Digital Dollar on the Avalanche Blockchain Network With Initial Cohort of Partners

Institutions

Tokenization 101: Capturing the Growth of Asset-Backed Finance via Blockchain-Enabled Opportunities

Developers

Codebase Incubator Opens Season 2 Applications In Search Of The Next Generation Of Web3 Founders Building On Avalanche

Enterprise

California DMV Makes History, Digitizes 42 Million Car Titles on Avalanche Blockchain

Community

Avalanche Foundation: The Community Airdrop

Community

The Avalanche Ambassador DAO Launches Snowfort, the AVAX Community Bounty Platform

Avalanche Watch: May 2024

Developers

AVAX Startup House Hosts Codebase Demo Day at Consensus

Gaming

Konami Digital Entertainment Co., Ltd. Unveils Groundbreaking NFT Solution "Resella" in Collaboration with Ava Labs

Gaming

OtherWorld’s New Digital Collectibles Platform ‘Solo Leveling: Unlimited’ Launches on Avalanche, Bringing the Mega-Hit IP On-Chain

Enterprise

Builder Spotlight: The Lemonade Foundation and Insuring Smallholder Farmers with Avalanche

Institutions

Institutional Products, Pilots Signal Growing Interest in Tokenization

Institutions

Tokenization 101: Institutions Leverage Avalanche to Test Merits of On-Chain Finance

Platform

Icebreaker Program: Phase One Update

Gaming

LiveDuel Brings Web3 Sports Betting to Avalanche

Gaming

Elixir Games Announces Acquisition of RoboKiden and Strategic Partnership with Ava Labs

Art & Culture

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

Gaming

Gamestarter introduces ‘GameChain’ powered by Avalanche

Institutions

Wine Capital Fund Leverages Oasis Pro and Avalanche to Make Fine Wine an Investable Asset Class

Community

Introducing Core’s Airdrop Tool: A Free Way to Distribute Tokens and Reward Your Community on Avalanche

Art & Culture

Salvor Secures Avalanche Rush with a $1M Incentive Grant to Build Out Avalanche’s Prime NFT Lending Platform

Gaming

Avalanche & Funtico: Revolutionizing Gaming on the Blockchain

Avalanche Watch: April 2024

DEFI

The Avalanche Foundation Announces Memecoin Rush

Institutions

Homium Issues First Home Equity Loans on Avalanche

Enterprise

Feature.io Uses Avalanche-Powered API to Bring Web3 to Any Streaming Platform or Media File

Enterprise

stc Bahrain and Avalanche forge partnership to drive Web3 progress in the Middle East

Enterprise

Avalanche x Seedhe Maut: Revolutionizing the Fan Engagement Economy with Metasky

Enterprise

Really Launches Avalanche Subnet to Expand Reach of On-Chain Movies

Developers

Frosty: Bringing Strong Liveness Guarantees to the Snow Family of Consensus Protocols

Platform

BitNote Launches Encrypted Notes on Avalanche

Platform

Avalanche Integrates with Stripe for Crypto Onramping

Avalanche Watch: March 2024

Platform

The Avalanche Foundation Unveils the Icebreaker Program

Community

The Avalanche Foundation Launches Ambassador DAO to Usher in the Next Wave of Users

The Avalanche Foundation Announces a New Board

Community

The Avalanche Foundation Discloses Community Coin Holdings

Platform

Avalanche Foundation Launches Community Grants Program with Gitcoin

Institutions

Clearpool Expands to Avalanche with Exclusive Launch of Credit Vaults

Enterprise

Coachella to Gamify the Festival Experience and Distribute New Rewards Using Avalanche

Developers

Startup Incubator Codebase Names First Cohort

Institutions

Diamond Standard Leverages Oasis Pro and Avalanche to Make Diamonds an Investable Asset Class

Institutions

Tokenization 101: The Tokenized Collateral Ecosystem

Enterprise

Avalanche Powers Web3-Enabled Voucher Program on Alipay+ D-store

Institutions

Avalanche and Chainlink Leveraged in Tokenized Asset Settlement Project

Developers

The Graph Expands Data Tools for Avalanche Developers

Community

Avalanche Foundation: Eligibility Criteria Framework for Community Coins

Platform

Avalanche Watch: February 2024

Art & Culture

Best Dish Ever Launches NFTs on Avalanche, Pioneering the Future of Culinary Exploration

Gaming

Legendary MMORPG MapleStory Comes to Avalanche

Platform

Teleporter Makes Avalanche a Fully Interoperable L0 Network

Enterprise

Loyalty+ to Receive Multiverse Incentives to Spur AI-Enhanced Loyalty Programs

DEFI

SteakHut V2 Introduces New Liquidity Features on Avalanche

Enterprise

Avalanche to Power SI Tickets’ NFT Platform, Box Office

Art & Culture

Looty and Inspect Launch Loyalty Platform with Loot Crate Rewards, Boosting Avalanche NFT Season

Platform

Durango: Avalanche Warp Messaging Comes to the EVM

Community

Avalanche DeFi Saga with Rep3

Institutions

Citi Tests Benefits of Private Markets Tokenization With Avalanche Evergreen Subnet ‘Spruce’

Enterprise

Avalanche Named Exclusive Sponsor of Collider on the Lot Startup Accelerator

Platform

Cortina: X-Chain Linearization

Avalanche Watch: January 2024

Gaming

Owned Blends SocialFi and Gaming on Avalanche with Battle Tech

Enterprise

The Empire State Building Launches NFT Loyalty Program on Avalanche Using Uptop

Institutions

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

Institutions

How Avalanche Uses Account Abstraction to Improve the Web3 Experience for Institutions

Enterprise

Edgevana to Provide Infrastructure to Avalanche Network, Expanding Validator Decentralization

Institutions

South Korean Digital Asset Custodian BDACS to Support Avalanche

DEFI

Struct Finance Joins Avalanche Rush with an Incentive Program of up to $1M

DEFI

Fonbnk Builds Avalanche On-Ramp for Cross-Border Payments in Emerging Markets

Platform

Avalanche Wallet Phase-Out Guide

Platform

Avalanche Watch: December Edition

Institutions

What is Asset Tokenization: Why & Why Now?

DEFI

Sub-Saharan Africa: A Land Of DeFi Opportunity