snarkOS v5.1.0-rc.1
Testnet release candidate for 5.1.0, from release/v5.1 at 85a682d7af098ffcf7c1e54f90c7b101bb0bfb1a. These notes compare the release with v5.0.0.
Activation and operator actions
- Upgrade testnet nodes before block 22,366,000. At the December 5 00:14 UTC sample, the 24-hour mean of 2.448465 seconds/block estimates Tuesday, December 8 at 20:49 PST / Wednesday, December 9 at 04:49 UTC. Recent 6–72-hour rates estimate December 8 at 20:49–21:51 PST. Activation follows the block height; the time is an estimate.
- The release pins snarkVM
v5.1.0-rc.1at4cd949869bc5bb07751e1a952e2b7ac598d2f223. All 22 OS workspace packages are version 5.1.0. Mainnet V24 stays unscheduled; the existing mainnet V23 schedule is unchanged. - Testnet nodes advertise router message version 35 once V24 is scheduled. They accept version 34 before activation and require version 35 at V24. Mainnet keeps its existing version schedule.
- Testnet candidates use the tag
v5.1.0-rc.1and a GitHub prerelease. Final mainnet tags and crates.io publication come later. Prerelease tags do not trigger binary assets under the current release workflow.
V24 deployment freeze
- Add ARC-0048 support through the built-in
aleo_protocol_controls.aleoprogram and the companion VM's V24 rules. Validators can vote to freeze or thaw program deployments. V24 activation alone does not freeze deployments. Existing executions remain available. #4724 - Add
snarkos developer deployment-freeze payload|tally|submit|status. Validators sign a shared payload withsnarkos account sign;tallychecks signatures without submitting. A funded submitter pays for the aggregate vote.submit --waitchecks whether the vote was accepted, not merely included. - New deployment admission and relaying stop once a freeze is scheduled, including during its 60-block delay. The VM's consensus rejection starts at the freeze's start height. Nodes still handle deployments in peer batches as required to preserve consensus progress.
- REST returns a freeze refusal for deployments, and nodes recheck the freeze around asynchronous validation and admission. Queued and held deployments are removed during the freeze. After thaw, create a new deployment transaction with a new fee/ID when resubmitting, because peer relay caches can remember the previous ID.
- REST program routes serve the built-in program at edition 0. Vote submissions become accepted by nodes from the block after V24 activation. The pinned VM includes #3999, which removes the separate per-block cap on frozen deployments while retaining the public-payer rule. See the companion VM changelog for consensus rules and parameters.
Storage options and compatibility
- Add
--prune-authority-datafor clients and validators, off by default. Keep the most recent 500,000 blocks' authority data. The first startup prunes existing data before joining the network; old authorities cannot be restored by removing the flag. Peers receive retained-height floors andPrunedresponses. Old block endpoints return HTTP 410 under v2, or the legacy error response under v1. #4596 - Pruning requires ledger schema V1 or later. The VM performs resumable certificate-index cleanup and background compaction; disk reclamation and shutdown can take time. Keep a pre-upgrade backup if an older node version must reopen the ledger.
- Add client-only
--history-programsand--archivalmapping history. Validators reject recording flags. Startup prepares a baseline at the current tip before syncing. Earlier history is not backfilled automatically. Reducing coverage requires--allow-history-change, including the first validator start on a ledger that has history recording enabled. Selected programs do not automatically include their dependencies;--archivalrecords all programs. Recording upgrades storage to V2, andclean --historydoes not downgrade the schema. #4696 - Add historical value, batch, coverage, and paged full-mapping routes. The full-mapping route is
/program/{program}/mapping/{mapping}/history/{height}/all?after={key}&limit={n}. Follownextuntil null, including after short or empty pages; percent-encode the cursor. It is not registered in history compatibility mode. #4797
Transaction submission: API migration
-
Developer commands with
--waitsucceed only when a deployment or execution is accepted. A rejected transaction returns an error explaining that only its fee was paid. The commands read the confirmed transaction type instead of treating inclusion as success. #4854 -
Broadcast checks the fee against the node's state; transactions without a fee receive a full check. A 2xx response reports
mempool,already_queued,relayed, orin_ledgerinx-snarkos-admission. A queued or relayed transaction is not guaranteed inclusion or a valid execution proof. Validators perform full verification before relaying through BFT. #4832, #4833, #4836 -
Under v2, handle HTTP 400 for malformed JSON or an oversized body, 409 for already rejected/aborted transactions, 422 for invalid transactions or frozen deployments, 429 for a full verification queue or per-IP rate limit, and 503 for a full pool, missing peers, or unavailable sync state. Use
Retry-Afterwhere returned. The v1 routes retain plain-text HTTP 500 errors and do not expose v2 error codes or retry headers. -
Broadcast verification and admission continue if the HTTP caller disconnects. Unknown global state roots get a wait of up to 5 seconds before the node returns
invalid_transaction. Thecheck_transaction=trueparameter no longer enables verification; checks always run. That parameter only selects 203 instead of 200 when the node is outside sync leniency. Gossip admission checks fees before queueing; full transaction checks still happen before an honest validator proposes the transaction. -
Applications that treated every previous HTTP 200 as durable acceptance must update their error and retry handling. See REST documentation.
Validator and sync reliability
-
Stop the metrics exporter, upkeep task, and connections on shutdown and failed startup. The exporter runs on a separate runtime. Upgrade tests now cover a late validator stopping before activation and rejoining with its existing ledger, with strict fork checks. #4857
-
Use one serialized-deployment check in the router, worker, and primary. It requires the supported transaction version and deployment variant; invalid bytes still fail deserialization. #4855
-
Persist proposal caches with synced temporary files and atomic replacement. Persist proposed/signed work before sending it, serialize snapshots, and retain the durable record after startup. #4654
-
Make certificate insertion/removal atomic, recheck garbage-collection races, and avoid storing certificates after GC removes their transmissions. Hold the certificate-update lock per certificate during sweeps. #4790, #4794, #4802, #4829
-
Decide and insert pending transmission/certificate requests atomically. Track the round of a proposal-ready signal so a later round's signal survives asynchronous proposal work. #4799, #4800
-
Accept benign concurrent certificate-storage progress during block sync. Discard invalid client block responses and ban the sender. Complete peer teardown on bans so stale resolver and sync state does not prevent reconnects. Skip unresolvable trusted addresses without losing working peers. #4788, #4781, #4825, #4780
-
Move automatic checkpoint I/O to an awaited blocking task. Checkpoint format, interval, and retention stay unchanged. Checkpoint follow-ups #4838 and #4839 are outside this release snapshot. #4808
-
Log the VM's MSM tuning at startup. An invalid
SNARKVM_MSM_BUCKET_MIN_BASESstops startup; an invalidSNARKVM_MSM_CUDA_MIN_BASESdoes the same in an x86_64 CUDA build. Unset or empty values use defaults. #4835, #4840 -
Add deterministic concurrency tests, stale-subDAG regression coverage, weak callback ownership, and advisory updates. See the complete merged-change list below.
Release preparation
- Apply the 5.1.0 package versions and VM pin on the current release branch. The upgrade tests and metrics fix come from merged PR #4857.
Validation and publication
Release PR #4853 was reviewed and merged. The tagged merge commit has the same tree as the approved final pin at edb4d115b.
Extended CI and all three V24 load legs passed on 8076e1f42: load, packet loss, and deployment load. Each load leg included all 6,000 transfers. Deployment load included all 24 deployments. The final VM pin changes only the Git commit reference to the source-identical VM merge commit; dependency versions and OS runtime files are unchanged.
At publication, CI on the final pin and network stress are still pending. Fresh public-sync runs for testnet and mainnet await environment approval. This is a testnet release candidate; validation is not yet complete.
Complete merged-change list since v5.0.0
--wait when the transaction is rejected