Skip to main content

Upgrade

Starting at the stop-network-slot the network will not produce nor accept new blocks, resulting in halting the network. During the upgrade period, o1Labs will use automated tooling to export the network state based on the block at the slot just before the stop-transaction-slot. The exported state will then be baked into the new Mesa build, which will be used to initiate the upgraded network. It is during the upgrade window that the Mesa network infrastructure will be bootstrapped, and seed nodes will become available. o1Labs will also finalize the archive node upgrade and publish the PostgreSQL database dumps for import by the archive node operators who wish to bootstrap their archives in a trustful manner.

There is a tool available to validate that the Mesa node was built from the pre-upgrade network state. See In-Depth Validation for the mina-archive-hardfork-toolbox commands (validate-fork, fork-candidate no-commands-after) used to verify fork-block integrity.

Per-actor summary

ActorDuring this phase
Block Producers (automode)Nothing. Your node transitions to Mesa automatically and will start producing blocks at the Mesa genesis timestamp.
Block Producers (manual)Stop your node. Wait for the Mesa release announcement, then install the new package and restart with updated flags.
SNARK CoordinatorsSame as block producers — automode transitions automatically; manual requires stop, install, and restart.
Standalone SNARK WorkersStop old workers. After the Mesa release is published, redeploy and start workers against the Mesa coordinator — an older worker cannot submit work to a Mesa coordinator.
Archive Node OperatorsInstall the Mesa archive node release. Point it at your upgraded database (trustless) or import the o1Labs SQL dump (trustful).
Rosetta OperatorsFollow the archive node upgrade procedure for your archive database. Install the Mesa Rosetta release when published.
ExchangesInstall the Mesa release if running node infrastructure. Keep deposits/withdrawals disabled until block production is confirmed on the Mesa chain (see Post-Upgrade).

Block Producers and SNARK Workers

info

If you are using Automode, your node handles this phase automatically. It will transition to the Mesa network without manual intervention. Skip to Post-Upgrade for monitoring guidance.

If you are using Manual mode:

  1. During the upgrade phase (between stop-network-slot and the publishing of the Mesa release), block producers can shut down their nodes.
  2. After the publication of the Mesa node release, block producers and SNARK workers should upgrade their nodes and be prepared for block production at the Mesa genesis timestamp, which is when the first Mesa block will be produced.
  3. It is possible to continue using the same libp2p key after the upgrade. Pass it to the Mesa daemon with the --libp2p-keypair flag. All daemon flags carry over unchanged from Berkeley — see the Post-Upgrade flag reference for the full per-role configuration.

Archive Node Operators and Rosetta Operators

  1. Upon publishing the archive node Mesa release, archive node operators and Rosetta operators should upgrade their systems. There will be both Docker images and archive node releases available to choose from.
  2. Depending on the chosen upgrade method:
    • Trustless
      • Operators should direct their Mesa archive process to the previously upgraded database.
    • Trustful
      • Operators shall import the SQL dump file provided by o1Labs to a freshly created database.
      • Operators should direct their Mesa archive process to the newly created database.