en
Back to the list

Solana Resumes Upgrades With Direct-Mapping Warning

source-logo  thedefiant.io  + 1 more 20 November 2026 03:53, UTC
image

Anza said Solana’s mainnet feature-gate activations resumed Nov. 19 after a Breakpoint pause, warning developers that direct mapping, a runtime upgrade with breaking changes, is heading for mainnet activation during the current release cycle.

Account Data Direct Mapping remains pending mainnet activation in Anza’s feature-gate tracker, without a mainnet date or epoch. The Solana Foundation’s developer guide also marks the mapping gate as not activated.

View post on X

Know when your
coins move

Alerts, real-time prices, and market news — all in one app
qr-code Point your phone camera to install
4.8 based on 40K reviews in the App Store and Google Play

Direct mapping changes how programs access account data. Validators currently copy that data into a program’s virtual machine and back; calls from one program to another repeat the copying. The upgrade lets programs read and write the data where it already lives, removing those copies and associated comparisons, according to the Foundation.

That requires stricter memory-access rules. Most programs are unaffected, the Foundation says, but programs relying on previously tolerated shortcuts can suffer failed instructions. Some changes to stack memory—the working space used during function calls—can alter behavior without producing an error.

Two Gates, Different Jobs

The upgrade has two distinct switches, known as feature gates. virtual_address_space_adjustments adds the stricter checks and changes the stack layout; account_data_direct_mapping removes the copying. The former is the source of the breaking behavior, rather than the copy-removal switch itself.

Their published status is not fully aligned: the Foundation’s guide marks the access-check gate live on mainnet in epoch 1092, while Anza’s tracker still lists it as pending. Both mark the separate mapping gate as not yet activated.

The Foundation identifies these risk areas for program developers:

  • Account-memory shortcuts: Reading beyond account data or writing to read-only or foreign-owned accounts, even if the original bytes are restored afterward.
  • Cross-region accesses: A single memory operation spanning separate memory regions must be split into separate accesses.
  • Account resizing: Deprecated resizing code that does not initialize new bytes needs attention. The guide recommends replacing realloc with resize, which zero-fills the added space.
  • Stack assumptions: Hard-coded stack addresses, address calculations across function frames and out-of-bounds stack accesses can break or silently change behavior.

Anchor programs have a specific exposure when they reassign a typed account to another program through a cross-program invocation, or CPI. Older account-exit code can still try to write the account afterward, triggering an ownership error under the stricter rules. A merged Anchor fix addresses that pattern; the Foundation recommends upgrading to Anchor v1.2.2 and rebuilding.

Both gates are already active on devnet and testnet. The Foundation advises testing every instruction, including close, resize and CPI paths, rather than a single successful workflow. Wallets, frontends and indexers need no format or RPC changes, but transactions can fail if a program they call is incompatible.

Anza’s v4.5 release schedule records the Nov. 19 mainnet resumption after a pause through Nov. 18. It separately targets Dec. 14 for beginning v4.5 feature activations, with all dates tentative. That is not a confirmed direct-mapping deadline: the tracker records direct mapping as having shipped in v4.0.0-beta.0 and supplies no mainnet activation epoch.

thedefiant.io

Similar news (1)