github aleo-labs-protocol/snarkOS v5.0.0

one hour ago

snarkOS v5.0.0

snarkOS 5.0.0 schedules mainnet consensus V23 at block 24,602,000 and pins the published snarkVM =5.0.0 crates. Release commit c26b499109f4c440b6fb8e6b6b879443bd2785e5 has the same source tree as the reviewed and CI-tested PR head 69ec8c615. This changelog compares v4.13.1 with v5.0.0. Node source files match v5.0.0-rc.1; the Cargo files select the final VM and Snow 0.10.3.

Activation and operator actions

  • Upgrade mainnet nodes before block 24,602,000. This activates consensus V23. The current estimate is December 8, 2026 at approximately 16:00 UTC / 08:00 PST. The block height determines activation; block production can shift the estimated time.
  • Testnet V23 activated at block 22,079,000 on November 30, 2026 at 23:49:31 UTC / 15:49:31 PST. Its activation height stays the same.
  • Mainnet nodes advertise router message version 34 as soon as they run the build with the scheduled height. They accept version 33 before block 24,602,000 and require version 34 from that block onward. Testnet already requires version 34 after its V23 activation.
  • Use release tags to update nodes. testnet, mainnet, and canary branches are retired. ./scripts/checkout-latest-release.sh mainnet selects the latest applicable release tag and leaves a detached HEAD. For a fixed rollout, check out the exact v5.0.0 tag. The scripts/run-*.sh scripts run the current checkout and no longer pull updates. The checkout helper requires curl and jq. #4702, #4722
  • Build public-network nodes with production features. Do not enable dev-network or dev-committee-override for public testnet or mainnet. The word “testnet” does not mean a local development network.
  • Linux x86_64 and macOS arm64 binary assets are available. Their archive checksums, integrity, and target architectures are verified. The Linux binary reports version 5.0.0 and release commit c26b499109f4c440b6fb8e6b6b879443bd2785e5. The Windows build is still running. Operators can also build the source tag with cargo build --release --locked.
  • Canary support is removed from the CLI, network dispatch, ledger distribution, and scripts. Network IDs remain mainnet 0 and testnet 1; ID 2 is not reassigned. #4761
  • The default block CDN is now https://cdn.aleolabs.io/v0/blocks. Update network allowlists if needed. Custom --cdn URLs, block paths, and bundle formats remain supported. #4773

The snarkVM 5.0.0 changelog describes V23 deployment restrictions, finalize pricing, ECDSA input checks, synthesis limits, runtime fixes, and library migrations. Applications should recalculate affected finalize fees before activation.

Network dependency update

  • Update Snow from 0.10.0 to 0.10.3. Its patched Curve25519 dependency resolves RUSTSEC-2026-0620. The handshake rollback fix addresses RUSTSEC-2026-0626.
  • Snow restores the cipher key, nonce, and peer key state after failed handshake operations. It also checks key and output-buffer lengths. The configured Noise pattern remains Noise_XX_25519_ChaChaPoly_BLAKE2s.
  • Cargo.lock retains Curve25519 4.1.3 through the optional self_update → zipsign-api → ed25519-dalek dependency path. The workspace does not enable that path, including with all workspace features and targets. Lockfile-only scanners can still report RUSTSEC-2026-0620. Cargo-deny passes for the enabled graph.

Validator reliability

  • Reject a locally prepared quorum block if its subDAG contains a certificate already committed to the ledger. This handles a race where block sync advances the ledger after BFT orders the subDAG. The node retries ordering on a later commit. It prevents the observed restart fork with certificates from two blocks in one block. This local construction guard does not change peer-block validity rules or remove the underlying race. #4778
  • Return expired pending proposal transmissions to workers when a validator fast-forwards rounds. Keep proposals for future rounds and batches whose certificate is being stored. A completed certificate store clears only its own proposal state. Store failures also release that state. These changes prevent lost transmissions and a restart stall after proposal-cache recovery. #4602
  • Skip a malformed buffered transaction when building a proposal, while retaining the transactions already drained for that proposal. Read the block height and consensus version before draining. A ledger-read error requeues the affected transmission at the back of its worker queue, logs a warning, and stops that drain pass. #4603, #4664
  • Release a peer's “connecting” state when a handshake times out, returns an error, or is aborted. Apply this to gateway, router, and bootstrap-client handshakes. Preserve the known Aleo address on rollback. Peers can reconnect after packet loss instead of remaining stuck as AlreadyConnecting. #4715
  • Bound transmission-latency tracking by the combined mempool capacities. Use monotonic time and direct lookups for included and aborted transmissions. Limit stale-entry cleanup per update and emit metrics after releasing the relevant locks. This bounds tracking memory during mempool churn and reduces work under the ledger update lock. #4730

Block sync and protocol

  • Add BlockResponse status replies: Pruned { oldest_retained } and NotYet { latest_height }. Router pings can advertise the oldest retained height. Gateway event version increases to 13, with minimum version 10 retained. Router status support uses version 34, mapped to V23. Replies to older peers retain the older protocol. When an older peer requests blocks this node cannot serve, this node still disconnects it. #4725
  • Track each peer's retained-height floor and temporarily cap its served tip after NotYet. Route each requested chunk only to peers that can serve all of it. Release chunks after a status reply so another peer can serve them. Reject contradictory status replies. Cap router requests to each peer at 192 per 60 seconds. Gateway requests use the existing gateway policy.
  • Warn when sync cannot progress because enough peers report that the next required block is below their retained floor. This release does not enable pruning; nodes still advertise floor zero. The protocol prepares for future pruning work.
  • Drop failed requests above every peer's advertised height, including all failed requests when no peers remain. Request a missing gap below buffered responses even when the total buffer cap is reached, while retaining the outstanding-request cap. This prevents stale requests and full-buffer gaps from stalling sync. #4775
  • Keep sync logs quiet when all blocks at the true served tip are already stored or in flight. If a peer advertises more than it currently serves, emit a trace showing both heights. Suppress repeated retries and debug noise for ranges no peer can yet serve. #4750, #4755
  • Reuse a caller-owned compute-key cache across each peer-response batch and each CDN bundle. Peer reads remain checked; CDN reads keep their existing unchecked path. Bundle framing and decoded values stay the same. Component benchmarks are in the linked PR; no overall sync speedup is claimed here. #4633

REST and logging

  • Add GET /{network}/programs/summary, also under the /v1 and /v2 prefixes. The response contains height and programs sorted by ID, each with its latest edition and amendment_count. The handler scans storage in a blocking task and shares a cached JSON response for the height. Concurrent requests wait for one build. A failed build is not cached. #4747
  • The program summary is not an atomic historical snapshot: entries can be newer than the response's height. An amendment-count read error returns an error. A decode error in the underlying map iterator can shorten the program list without surfacing an error. Consumers must account for these limits.
  • Warn at startup when --history-json is enabled because that mode is planned for deprecation. JSON output and existing history routes still work. This release does not introduce the separate program-mapping-history work. #4774
  • While a validator is behind, summarize expected missing-committee failures at INFO at most once per 30 seconds. The individual failures remain available at TRACE. Other committee failures remain WARN. Update alerts that counted the previous per-message warnings. Add DEBUG timing for each synced block. #4697
  • Disable the snarkVM timing tracing targets in the default filter at every verbosity. Opt in with a custom filter such as --log-filter "info,timing=trace". Remove the redundant per-update block-sync trace. Startup failures print their error chain directly. #4699, #4700, #4748

Rust and Cargo migration

All 22 snarkOS workspace crates move to 5.0.0. Consumers must update their feature selections and account for the snarkVM major-version API changes.

Previous configuration or API 5.0.0 migration
test_network, test_targets, test_consensus_heights Use dev-network for local development chains only. It changes network parameters, consensus heights, and development validation.
--dev-on-prod in a test_network build Build with the separate dev-committee-override feature for isolated development on a copied ledger. It preserves production genesis parameters and consensus heights. A build that also enables dev-network rejects --dev-on-prod.
Root telemetry feature Use metrics. It is enabled by default and includes the CLI metrics exporter.
locktick features Use cargo locktick-build --release, cargo locktick-check, or cargo locktick-clippy. These set --cfg locktick. Use the snarkos_utilities::locks facade for locks. An environment RUSTFLAGS value can override the aliases' configuration.
test and fuzz-helpers features Use the relevant crate's test-helpers. Router helpers also disable IP-ban and connection-attempt checks; keep them out of production builds.
Ledger-service ledger, ledger-write, prover Remove these feature selections. The implementations compile unconditionally.
Ledger-service translucent Use test-helpers for TranslucentLedgerService. It skips validation and is for tests. The separate mock feature remains.
Storage-service memory, persistent Remove these selections. BFTPersistentStorage compiles unconditionally. BFTMemoryService requires test-helpers outside unit tests.
history, history-staking-rewards, node timer, CLI async, and serial Remove these feature selections. Existing history routes do not require a Cargo feature. Use tracing for timing diagnostics.
Implicit optional-dependency features Use explicit product features such as metrics and cuda; dependency names hidden with dep: no longer select features.
Message::VERSIONS array Treat it as &'static [(ConsensusVersion, u32)]. Iteration over the constant yields references. Minor releases can add entries and change gateway version constants.
Direct instrumentation dependencies Use snarkVM's metrics and locktick re-exports where applicable so the node and VM share the dependency versions.

Sources: #4758, #4760, #4728, #4716, #4727, #4723, #4729, #4721, #4757, #4752.

Build and release tooling

  • Use release/v5.0 and tags v5.0.0-rc.N for candidates, followed by v5.0.0 after testnet acceptance. The built-in updater uses the aleo-labs-protocol repository. Automatic latest-release selection excludes prereleases; selecting a specific tag remains supported.
  • Run extended CI on release branches and PRs. It includes upgrade and restart devnets, Windows checks, and separate lock-instrumentation lint. Staging uses a six-hour schedule. The Gauntlet release workflow defines six legs: network, load, load with packet loss, load with deployments, testnet sync, and mainnet sync. Host verdicts and reports establish success; workflow dispatch alone does not.
  • Upgrade tests select test_network or dev-network from the old release's own manifest. The 4.13.1-to-5.0.0 development-network upgrade tests use testnet because the mainnet development genesis parameters changed. Public-network sync tests use production builds.
  • Reuse test fixtures between test processes, use private temporary directories, share selected CI builds, and cap long-running tests. Source checks run in CI instead of the build script. These changes do not relax release-node validation.
  • Update dependencies and advisory handling. Changes include jsonwebtoken 12, nix 0.32, serde_with 3.25, and snarkVM's metrics re-export. Yanked dependencies fail checks. Advisory checks run on scheduled and release CI, and automated fixes target staging.

Compatibility and rollout review

The local BFT and sync fixes do not introduce new consensus rules. V23 rules come from snarkVM. The shipped mainnet and testnet parameter resources in the VM remain byte-for-byte unchanged from v4.13.1.

The VM also rejects malformed function-finalize encodings and invalid record-owner visibility bytes without waiting for V23. These malformed bytes can be accepted differently during a mixed-version rollout. Scheduling V23 alone does not gate these decoder changes. See the VM changelog's runtime and decoding section.

Pruning and program-mapping-history changes outside the frozen source are not part of this release. The prior 4.13.1 CUDA packaging fix is already in the baseline.

Full source comparison

Don't miss a new snarkOS release

NewReleases is sending notifications on new releases.