๐งช The o1Labs team is pleased to announce that the 4.0.5-beta1 Beta Release is now available for Mainnet & Devnet! ๐งช
4.0.5-beta1 is a beta of the next stability release for the Mesa networks. Its main parts are a rebuilt block intake for catchup and bootstrap, and faster ledger sync during bootstrap. Block producers on this version also signal a proposed protocol version, so that the network can measure how many producers have upgraded. No protocol change is included: chain ids, verification keys and proofs are identical to 4.0.4, and the archive database schema does not change.
This is a beta. We ask node operators to test it, on Devnet first, and to tell us what they find before the stable 4.0.5 release. Beta packages are in the beta channel of the Debian repositories (see below).
If you run into any issues, please include Release: 4.0.5-beta1 in the name of any issues you create. Please report any issues you encounter here or join the discussion!
What's Included in 4.0.5-beta1?
Catchup and bootstrap
- Block intake rebuilt: blocks that a node receives, catches up or produces now go through one dispatcher.
- Catchup stability: catching up on missed blocks is more stable.
- Stuck catchup: a catchup job that can no longer succeed is now ended and replaced cleanly.
- Error handling during block checks is more robust.
- Bootstrap block handling: bootstrap handles the blocks it receives better, so catchup has less to fetch after bootstrap.
- One bootstrap at a time: when the node falls too far behind, it now switches to bootstrap exactly once.
- Saved state after a crash: a node saved its most recent blocks to disk only after about ten had built up. If it crashed or was killed in a quiet period, it restarted from an older state and had to catch up again. Recent blocks are now also saved after a few block windows.
Ledger sync
- Faster bootstrap: ledger sync spends far less time on the bookkeeping of its queries (about 17% more throughput in mainnet bootstrap tests), asks peers for accounts in batches of 64 instead of 32 (15โ20% faster), and no longer hashes each downloaded account twice (about 40% faster writes). In our Devnet test, a cold start spent 114 s in bootstrap on 4.0.5-beta1 against 245 s on 4.0.4.
stream reseterrors fixed: RPC requests no longer fail withonly wrote 0 out of N bytes: stream resetwhen a node sends many requests to one peer, for example during ledger sync.- Snarked ledgers below the root: the snarked ledger that each pending proof will target is now built while the block is applied, and committed when the proof reaches the root. A root move no longer replays the proved transactions, and peers can sync a snarked ledger from a node before its proof reaches that node's root.
- Root persistence: the root scan state is written to the frontier database directly from the proof cache, without first reading and decoding every proof.
Block production
- Protocol version signal: block producers now put a proposed protocol version in every block they produce. In this release it is built in as
4.0.1and needs no configuration (--proposed-protocol-versionoverrides it). The block proof does not cover this field, so treat it as an indication only. - Blocks built on an old frontier are dropped when the node has since replaced its frontier.
Validation
- Earlier block checks: incoming blocks are checked more completely as soon as they arrive.
- Storage fix: the
lmdbbinding is updated to 1.1.3.
GraphQL and CLI
- Protocol versions of blocks: GraphQL blocks have the new fields
currentProtocolVersionandproposedProtocolVersion.mina advanced protocol-version-signalscounts the versions proposed in the best chain (--max-length,--json), and the new Prometheus gaugeCoda_Transition_frontier_proposed_protocol_version_blockscounts them by version. - Token symbols and zkApp URIs: the new fields
tokenSymbolBytesandzkappUriBytesgive the exact bytes (hex) and the text (utf8, null if it is not valid UTF-8). mina-graphql-client bootstrap-statusprints the node'sbootstrapStatusas JSON.mina client statusshows the next block production time as5h29m16sinstead of5.507h.
Uptime and delegation program
- Uptime submissions: when the last transaction of a block was a zkApp command, the uptime service proved an empty SNARK work message, and the uptime backend rejected the submission. These submissions are now accepted.
delegation_verifychecks submitted SNARK work more strictly. Submissions made by a Mina node are not affected.
Archive node
- Missing blocks guardian:
mina-missing-blocks-guardianis now a compiled program with the same subcommands and environment variables, and each setting also has a command line flag. It checks all settings before it starts and reports each wrong one. It stops with a reason when it cannot restore a block, instead of looping or reporting a broken archive as healthy. It writes missing blocks to the database itself. See the action items below. mina-archive-hardfork-toolbox fork-candidate last-filled-blocknow follows the parent chain from the tip, so it no longer returns an orphaned block. A new optional--latest-state-hashsets the tip.- Archive command line tools no longer wait about 20 s for a DNS lookup at start.
mina-create-genesisstops, for a Mesa-to-Mesa fork, when a ledger's accounts do not hash to thehashin the config, instead of building a different genesis ledger with no error.
Security
- libp2p metrics port: with
--libp2p-metrics-port, the port now serves only/metricsby default. SetLIBP2P_ENABLE_PPROF=truefor the daemon to also serve Go profiles on/debug/pprof/. On every version, keep metrics ports reachable only from your monitoring systems.
Complete Changelog since 4.0.4:
Supported environments include Linux (Debian 12, Ubuntu 22.04 LTS & Ubuntu 24.04 LTS), and any host machine with Docker.
๐จNOTE - Ubuntu 20.04 (focal) and Debian 11 (bullseye) have reached EOL and are no longer supported. This release ships no packages or images for them.๐จ
Action items
- Daemon: no extra step. If you scrape
/debug/pprof/on the libp2p metrics port, setLIBP2P_ENABLE_PPROF=true. - Archive node: no schema change from 4.0.4, so there is no upgrade script to run. If you upgrade from 4.0.3 or older, first follow the 4.0.4 upgrade steps.
- Missing blocks guardian:
GUARDIAN_PRECOMPUTED_BLOCKS_URLmust point to the root of the bucket. Change values that end in/devnetor/mainnettohttps://storage.googleapis.com/mina_network_block_data.- The flag
--archive-blocksand the variableARCHIVE_BLOCKSare removed. Delete them from your scripts: the flag now gives an error. - The guardian needs a profile. Packages and configured docker images have one; otherwise set
MINA_PROFILE.
Known issues
- If the download of the peer list from
--peer-list-urlfails at start (for exampleconnection attempt timeout), the daemon stops (#19607). Start it again, or serve a copy of the peer list from your own network. docker stopand Kubernetes pod restarts stop the daemon without its shutdown steps, so a restarted node can need a full bootstrap. To stop the daemon cleanly, sendSIGTERMto theminaprocess inside the container (docker exec <container> pkill -TERM -x mina), then wait for the container to exit.
Testing on Devnet
Debian Packages:
Debian Repository: First, set up and update the signed Debian repository with the beta channel for your platform:
sudo rm -f /etc/apt/sources.list.d/mina*.list
curl -fsSL https://stable.apt.packages.minaprotocol.com/repo-signing-key.asc | sudo gpg --dearmor -o /usr/share/keyrings/mina.gpg
echo "deb [signed-by=/usr/share/keyrings/mina.gpg] https://stable.apt.packages.minaprotocol.com $(lsb_release -cs) beta" | sudo tee /etc/apt/sources.list.d/mina.list
sudo apt-get update
โ ๏ธ The repository signing key has changed. Its new fingerprint is 2A4A3C2EA71741282514B3335EFF11C0EF0BEEC8. If apt-get update reports NO_PUBKEY or an invalid signature, run the curl โฆ gpg --dearmor line above again to install the new key.
The unsigned packages.o1test.net repository is still supported and also carries 4.0.5-beta1. The signed repository is preferred, because apt verifies the package signatures. If you keep using packages.o1test.net, set it up with:
sudo rm -f /etc/apt/sources.list.d/mina*.list
echo "deb [trusted=yes] http://packages.o1test.net $(lsb_release -cs) beta" | 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-devnet=4.0.5-beta1-bbb1ad8
Mina Archive: sudo apt-get install --allow-downgrades -y mina-archive-devnet=4.0.5-beta1-bbb1ad8
Mina Rosetta: sudo apt-get install --allow-downgrades -y mina-rosetta-devnet=4.0.5-beta1-bbb1ad8
Mina Archive Schema: create_schema.sql
Config File: /var/lib/coda/config_bbb1ad8c.json
Docker Images:
Every docker image is built for each of the supported platforms, replace CODENAME in the images below with your choice of jammy, noble, or bookworm to select the base docker image.
Mina Daemon: minaprotocol/mina-daemon:4.0.5-beta1-bbb1ad8-CODENAME-devnet
Mina Archive: minaprotocol/mina-archive:4.0.5-beta1-bbb1ad8-CODENAME-devnet
Mina Rosetta: minaprotocol/mina-rosetta:4.0.5-beta1-bbb1ad8-CODENAME-devnet
Step by Step Guide:
Docker only Make sure to run with:
--peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt or add PEER_LIST_URL=https://bootnodes.minaprotocol.com/networks/devnet.txt to your .mina-env.
Run mina daemon with:
mina daemon --peer-list-url https://bootnodes.minaprotocol.com/networks/devnet.txt
Check out our documentation for complete instructions on using this version to connect to Devnet.
If you are running the correct version on the correct network DEVNET, mina client status will show:
Chain id: ebfce0d570bc22eb041e1a7b0a46bbc3ed5d0a1030ef2ab5e36eef908b93eba8
Git SHA-1: bbb1ad8c1ceeab20f30d048edfa084e3a3270544
Testing on Mainnet
Use the same Debian repository setup as above (beta channel), then install:
Mina Daemon: sudo apt-get install --allow-downgrades -y mina-mainnet=4.0.5-beta1-bbb1ad8
Mina Archive: sudo apt-get install --allow-downgrades -y mina-archive-mainnet=4.0.5-beta1-bbb1ad8
Mina Rosetta: sudo apt-get install --allow-downgrades -y mina-rosetta-mainnet=4.0.5-beta1-bbb1ad8
Config File: /var/lib/coda/config_bbb1ad8c.json
Docker Images:
Mina Daemon: minaprotocol/mina-daemon:4.0.5-beta1-bbb1ad8-CODENAME-mainnet
Mina Archive: minaprotocol/mina-archive:4.0.5-beta1-bbb1ad8-CODENAME-mainnet
Mina Rosetta: minaprotocol/mina-rosetta:4.0.5-beta1-bbb1ad8-CODENAME-mainnet
Run mina daemon with:
mina daemon --peer-list-url https://bootnodes.minaprotocol.com/networks/mainnet.txt
If you are running the correct version on the correct network MAINNET, mina client status will show:
Chain id: 0718f61ab88f9d0fa643ff4dc3a3d5998dd6d51a6008b2b0339b0dbb26133886
Git SHA-1: bbb1ad8c1ceeab20f30d048edfa084e3a3270544