snarkOS v5.0.0-rc.1
Testnet release candidate from PR #4783, merged into release/v5.0. Tag v5.0.0-rc.1 identifies commit 99eec12a14cb65fc0df65faea1909c4e128c99ae. These notes compare testnet-v4.13.1 with this candidate. The source includes staging through 8444af964, including the stale-subDAG guard. It pins snarkVM v5.0.0-rc.1 at d861c38292224e104577985872610389afd6102a. The merged snarkOS tree matches reviewed commit 4cf2b68ae exactly. The tagged VM tree matches the tested preparation source exactly.
Validation status at publication
- Extended preparation CI and the V23 network, load, packet-loss load, and deployment load tests passed. Only the VM Git source reference changed afterward; package versions, dependency edges, and source code are unchanged.
- CI on the final VM pin and release-branch CI are still running. Full CUDA clippy, locktick clippy, dependency checks, and Windows checks passed on the final pin.
- Sync validation is still pending. The testnet rerun and mainnet sync have caught up through the CDN; their peer-only clients are still catching up. This candidate has not completed release acceptance.
Activation and operator actions
- Upgrade testnet nodes before block 22,079,000. This activates consensus V23. The target is December 2, 2026 at 09:00 UTC / 01:00 PST. Block production determines the actual time.
- Mainnet V23 remains unscheduled. This candidate is for testnet acceptance before final release.
- Testnet nodes advertise router message version 34 as soon as they run this build. At the V23 height, they require version 34. Older version-33 routers can connect before that height. Mainnet continues to advertise version 33 while V23 is unscheduled.
- Use release tags to update nodes.
testnet,mainnet, andcanarybranches are retired../scripts/checkout-latest-release.sh testnetselects the latest applicable release tag and leaves a detached HEAD. For a fixed rollout, check out the exactv5.0.0-rc.1tag. Thescripts/run-*.shscripts run the current checkout and no longer pull updates. The checkout helper requirescurlandjq. #4702, #4722 - Build public-network nodes with production features. Do not enable
dev-networkordev-committee-overridefor public testnet or mainnet. The word “testnet” does not mean a local development network. - Release candidates are distributed as source tags. The release workflow excludes RC binary assets. After checking out the tag, build with the repository toolchain using
cargo build --release --locked. - Canary support is removed from the CLI, network dispatch, ledger distribution, and scripts. Network IDs remain mainnet
0and testnet1; ID2is not reassigned. #4761 - The default block CDN is now
https://cdn.aleolabs.io/v0/blocks. Update network allowlists if needed. Custom--cdnURLs, 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.
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
BlockResponsestatus replies:Pruned { oldest_retained }andNotYet { 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/v1and/v2prefixes. The response containsheightand programs sorted by ID, each with its latesteditionandamendment_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-jsonis 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
timingtracing 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.0and tagsv5.0.0-rc.Nfor candidates, followed byv5.0.0after testnet acceptance. The built-in updater uses thealeo-labs-protocolrepository. 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_networkordev-networkfrom 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. The original reviews identified different acceptance of those malformed bytes during a mixed-version rollout. The release review must resolve that concern; 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 candidate. The prior 4.13.1 CUDA packaging fix is already in the baseline.