Skip to content

Mina Mainnet 3.0.0 Berkeley Release

Compare
Choose a tag to compare
@amc-ie amc-ie released this 04 Jun 19:14
· 4738 commits to develop since this release
93e0279

The o1Labs team is proud to announce that the 3.0.0 Berkeley Release is now ready and available for Mainnet!

This release represents the final stage in the Mainnet upgrade process which concludes the execution of the upgrade mechanism. This release brings zk programmability to the new upgraded network, which will unlock developers to build zk smart contracts, zkApps, layer 2 solutions and bridges, and more!

🚨 This is mandatory and without it you will no longer be able to interact with the Mina network from June 5th 2024. 🚨

Complete Changelog since 2.0.0.

This Berkeley release will also include the 3 Mina Improvement Proposals that were proposed and voted on by the Mina community. MIP1 (zkApp programmability), MIP3 (improved Kimchi proof system), and MIP4 (removal of supercharged rewards).


Supported environments include macOS, Linux (Debian 10, 11 and Ubuntu 20.04 LTS), and any host machine with Docker.

Installation

If you have mina-generate-keypair installed, you will need to first run sudo apt remove mina-generate-keypair before installing mina-mainnet=3.0.0-93e0279. The mina-generate-keypair binary is now installed as part of the mina-mainnet package.

Debian Packages

Debian Repository:
First, set up and update the stable Debian Repository for your platform with the following commands:

sudo rm /etc/apt/sources.list.d/mina*.list
sudo echo "deb [trusted=yes] http://packages.o1test.net $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/mina.list
sudo apt-get update

Then, install the package(s) that you need:

Mina Daemon sudo apt-get install --allow-downgrades -y mina-mainnet=3.0.0-93e0279
Mina Archive sudo apt-get install --allow-downgrades -y mina-archive=3.0.0-93e0279
Mina Archive Schema
create_schema.sql
zkapp_tables.sql
Config File: var/lib/coda/config_93e02797.json

Docker Images

Every docker image is built for each of the supported platforms, replace CODENAME in the images below with your choice of focal, buster, or bullseye to select the base docker image.

Mina Daemon minaprotocol/mina-daemon:3.0.0-93e0279-CODENAME-mainnet
Mina Archive minaprotocol/mina-archive:3.0.0-93e0279-CODENAME
Mina Archive Schema
create_schema.sql
zkapp_tables.sql
Mina Rosetta minaprotocol/mina-rosetta:3.0.0-93e0279-CODENAME

Step by Step Guides


Upgrade Package verification

Documentation
https://github.com/MinaProtocol/mina/blob/berkeley/docs/upgrading-to-berkeley.md

Further usage details are documented inside the script itself as its help message: https://github.com/MinaProtocol/mina/blob/berkeley/scripts/mina-verify-packaged-fork-config

You can find the fork config from the pre-upgrade Mainnet here

Mina Archive Node

  1. Start the archive node using the migrated DB. You can migrate your database as instructed in this guide using the migration tool.

  2. Alternatively you can import the migrated db dump from here.

Mina Daemon

Nodes will remain in Bootstrap status until such a point as block production begins at 00:00UTC on June 5th.
During this period of no block production, nodes will automatically terminate after 25 minutes, this is expected behavior. Ensure you have configured your nodes to auto-restart on crash to have them automatically try and reconnect (for Docker).

  • Run mina daemon with:
    --peer-list-url https://storage.googleapis.com/mina-seed-lists/mainnet_seeds.txt

If you are running the correct version on the correct network, mina client status will show:

Chain id:     a7351abc7ddf2ea92d1b38cc8e636c271c1dfd2c081c637f62ebc2af34eb7cc1
Git SHA-1:    93e02797f72abe2cbf8dfca6f2328e9c8cd76546

If you run into any issues, please include Release: 3.0.0 in the name of any issues you create. Please report any issues you encounter here or join the discussion!


SDK Tooling

If you are new to the world of Berkeley & indeed zkApps we strongly encourage you to check it out!
The new Berkeley era allows compatibility with the mina network and our extensive suite of SDK tooling that allows anyone to write smart contracts utilising zero knowledge proofs!

Start here zkApps Overview and let us know what you think!

Useful links