Mina Devnet 3.0.0 Upgrade Release #15491
amc-ie
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
❗ This release is only to be used as part of the Devnet upgrade process ❗
This release represents the final stage in the Devnet upgrade process which concludes the execution of the upgrade mechanism. This release marks a new upgraded network with all of the Berkeley functionality that will feature on Mainnet when subsequently upgraded. This version of the daemon is not compatible with the previous builds and as such it is necessary to either install this on a clean system or to remove the previous builds and artifacts. The steps on how to do this are contained within the release notes.
Supported environments include macOS, Linux (Debian 10, 11 and Ubuntu 20.04 LTS), and any host machine with Docker.
Removing previous builds
Connecting to the Devnet network
Debian Packages
Debian Repository:
First, set up and update the
devnet
Debian Repository for your platform with the following commands:Then, install the package(s) that you need:
Mina Daemon
sudo apt-get install --allow-downgrades -y mina-devnet-hardfork=3.0.0
sudo apt-mark hold mina-devnet-hardfork=3.0.0
Mina Archive
sudo apt-get install --allow-downgrades -y mina-archive=3.0.0
sudo apt-mark hold mina-archive=3.0.0
Mina Archive Schema
create_schema.sql
zkapp_tables.sql
Config File:
var/lib/coda/config_dc6bf78b.json
Docker Images
Every docker image is built for each of the supported platforms, replace
CODENAME
in the images below with your choice offocal
,buster
, orbullseye
to select the base docker image.Mina Daemon
gcr.io/o1labs-192920/mina-daemon:3.0.0-dc6bf78-CODENAME-devnet
Mina Archive
gcr.io/o1labs-192920/mina-archive:3.0.0-dc6bf78-CODENAME
Mina Archive Schema
create_schema.sql
zkapp_tables.sql
Mina Rosetta
gcr.io/o1labs-192920/mina-rosetta:3.0.0-dc6bf78-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 Devnet here
In this release, the fork_config GraphQL endpoint does not automatically determine the correct block to fork from. As such, you will need to manually specify the block for the devnet hardfork when executing the GraphQL fork_config query.
The block that we hardfork from is always the latest block in the chain immediately prior to the transaction stop slot. In this case, the devnet transaction stop slot is set to 445620, so the correct fork block is the latest block in the chain where the globalSlotSinceGenesis < 445620. So the correct fork block to use here has the following properties:
To query the correct fork config from GraphQL, you can specify the block height of this fork block as shown in the following query:
Mina Archive Node
Start the archive node using the migrated DB. You can migrate your database as instructed in this guide using the migration tool.
Alternatively you can import the migrated db dump from here
Mina Daemon
This version connects and functions only on the Mina Devnet Network.
mina libp2p generate-keypair -privkey-path <path-to-the-key-file>
MINA_LIBP2P_PASS
with the password set for the libp2p key pair in the previous step.-libp2p-keypair <path-to-the-key-file>
and--peer-list-url https://storage.googleapis.com/o1labs-gitops-infrastructure/devnet/seed-list-devnet.txt
If you are running the correct version on the correct network (i.e.
devnet
),mina client status
will show: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
This discussion was created from the release Mina Devnet 3.0.0 Upgrade Release.
Beta Was this translation helpful? Give feedback.
All reactions