github aleo-labs-protocol/snarkOS v5.1.0-rc.1

pre-releaseone hour ago

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.1 at 4cd949869bc5bb07751e1a952e2b7ac598d2f223. 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.1 and 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.aleo program 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 with snarkos account sign; tally checks signatures without submitting. A funded submitter pays for the aggregate vote. submit --wait checks 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-data for 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 and Pruned responses. 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-programs and --archival mapping 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; --archival records all programs. Recording upgrades storage to V2, and clean --history does 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}. Follow next until 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 --wait succeed 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, or in_ledger in x-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-After where 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. The check_transaction=true parameter 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_BASES stops startup; an invalid SNARKVM_MSM_CUDA_MIN_BASES does 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
  • #4853 — Set 5.1.0 package versions and pin snarkVM v5.1.0-rc.1
  • #4857 — Stop the metrics exporter's tasks on shutdown, and fix the upgrade test against v5.0.0
  • #4855 — Use one check for a serialized deployment
  • #4854 — Fail --wait when the transaction is rejected
  • #4724 — Deployment freeze by validator vote (ARC-0048)
  • #4829 — Take the certificate update mutex for each certificate in the garbage collection sweep
  • #4827 — Check the transmissions of stored certificates in the shuttle tests
  • #4836 — Answer 2xx to a broadcast only when the node took custody of the transaction
  • #4849 — Bump snarkVM to aleo-labs-protocol/snarkVM@7ce7575c3
  • #4833 — Check the fee before a gossiped transaction enters the memory pool
  • #4832 — Relay an unconfirmed transaction only after the node verifies it
  • #4797 — Add a route that lists a mapping at a historical height
  • #4808 — fix(node): isolate automatic checkpoint I/O from async workers
  • #4696 — Add selective and archival RocksDB mapping history
  • #4848 — Bump snarkVM to aleo-labs-protocol/snarkVM@6a3bd2cac
  • #4847 — Bump snarkVM to aleo-labs-protocol/snarkVM@b1d6c7433
  • #4654 — fix(bft): make the proposal cache crash safe
  • #4844 — Bump crates with security advisories
  • #4842 — Bump snarkVM to aleo-labs-protocol/snarkVM@ef177a792
  • #4841 — Bump snarkVM to aleo-labs-protocol/snarkVM@b87b4cc86
  • #4840 — Log the CUDA MSM cutoff at startup and reject an invalid value
  • #4837 — Bump snarkVM to aleo-labs-protocol/snarkVM@951965fc3
  • #4825 — Tear down a banned peer when its connection closes
  • #4835 — Log the MSM bucket cutoff at startup and refuse an invalid value
  • #4800 — Name the round in the ready signal of the proposal task
  • #4799 — Decide and insert a pending request in one step
  • #4831 — Bump snarkVM to aleo-labs-protocol/snarkVM@6fd9b239f
  • #4798 — Test timer races in Primary and Sync under shuttle
  • #4830 — Merge release/v5.0 into staging
  • #4796 — Add a virtual clock for shuttle tests
  • #4802 — Do not store a certificate after garbage collection took its transmission
  • #4784 — Test the BFT retry after sync makes a subdag stale
  • #4795 — Run the BFT crates on shuttle's tokio under --cfg shuttle
  • #4794 — Read the GC round again when the check of the previous certificates fails
  • #4793 — Test Storage under the shuttle concurrency scheduler
  • #4826 — Bump cookie from 0.18.2 to 0.18.3
  • #4790 — Insert and remove certificates in one critical section
  • #4788 — Do not fail block sync when a certificate is stored concurrently
  • #4781 — Remove a block response that fails in client block sync, and ban its sender
  • #4805 — Keep the signer addresses in Proposal
  • #4816 — Bump crates with security advisories
  • #4780 — Retry trusted hostnames that do not resolve instead of failing to start
  • #4807 — Drop the ledger when a validator exits without shut_down
  • #4810 — Bump snarkVM to aleo-labs-protocol/snarkVM@e289eee60
  • #4811 — Bump taiki-e/install-action from 2.90.6 to 2.90.11 in the github-actions group
  • #4813 — Bump built from 0.8.1 to 0.9.0
  • #4812 — Bump rlimit from 0.11.0 to 0.12.0
  • #4806 — ci: resolve workspace version bumps in the merge bot's Cargo.lock
  • #4801 — Merge release/v5.0 into staging
  • #4803 — Remove the ci-ok job
  • #4596 — Add opt-in pruning of old block authority data
  • #4791 — Build tests at opt-level 1
  • #4792 — Default the Gauntlet load and release tests to a V23 stockpile
  • #4785 — Return VM halts in the developer commands as command errors
  • #4786 — ci: offer a 21-validator network in the Gauntlet forms
  • #4782 — Bump snarkVM to aleo-labs-protocol/snarkVM@4606f61d8

Full source comparison

Don't miss a new snarkOS release

NewReleases is sending notifications on new releases.