Market desk Bitcoin Ethereum Altcoins DeFi Stablecoins Markets & Trading

Solana's Memory Checks May Cause Older App Transactions to Fail

Solana's planned memory checks could break some transactions from older applications built with the Anchor framework, as developers prepare for the network upgrade's mainnet activation.
Source: CryptoSlate Published 1 view
Solana's Memory Checks May Cause Older App Transactions to Fail

Solana's planned memory checks could make some application transactions fail even when other parts of the app continue working normally. The checks are pending activation on mainnet, according to Anza's feature tracker as of November 20.

Developers have already identified one failure scenario through replayed mainnet traffic. Older code built with the Anchor framework can break when it attempts to write account data back to the blockchain after handing control of that account to another program. The old runtime allowed such writes to pass, but Solana's new rules reject them because the first program has already surrendered the right to modify the account.

What the memory checks do

The checks reject reads that extend past the end of an account or writes to accounts a program cannot modify. They also change the stack layout that older programs use to hold temporary data, which can cause code relying on that layout to behave differently.

Fixing affected programs

The Anchor 1.2.2 framework update includes a fix that compares account data after ownership changes and skips unnecessary writes if the bytes remain the same. Teams maintaining affected programs can rebuild and test with the updated framework. Programs deployed through Solana's upgradeable Loader V3 require authorization from the party authorized to update the on-chain code.

Anza replayed mainnet traffic to identify affected developers, and the team contacted most of those whose apps would have failed in the exercise. However, rarely used transaction paths could still escape detection if the sample data never triggered them.

Separate optimization in progress

A separate change called account data direct mapping is also pending mainnet activation. This optimization allows validators to access account bytes where they already reside rather than copying data into a program's virtual machine. The old execution path could copy account data up to four times for instructions with a single cross-program call. When direct mapping goes live, validators will gain these copy savings, though the effect on user transaction times remains unclear.

Market snapshot

Top cryptocurrency prices

Explore all prices
BitcoinBTC $61,568.64+3.97% EthereumETH $1,737.29+4.69% Tether USDUSDT $0.9996-0.02% BNBBNB $560.63+3.65% USDCUSDC $1.00-0.07% XRPXRP $0.9358+1.92% SolanaSOL $71.63+3.33% TRONTRX $0.3069+0.57% HyperliquidHYPE $62.98+4.61% ZcashZEC $803.59+5.00%
Prices by Coinranking. Informational only.