Solana’s new memory checks could make some older app transactions fail

Solana’s new memory checks could make some older app transactions fail

Anza’s November 20 tracker showed Solana’s memory checks and account-data direct mapping still pending on mainnet, while replay exposed an Anchor account handoff that could make some transactions fail.

Anza’s mainnet feature tracker listed both changes as pending, without activation slots. The memory checks can reject writes by programs that no longer own an account; a replay found older Anchor code could fail when it tried to write account data after handing ownership to another program.

The issue affects transactions that take the specific account-handoff path; other app transactions can continue to work. Anchor 1.2.2 addresses it by comparing the data after ownership changes and skipping the write if the bytes are unchanged. Teams need to rebuild and test affected programs, and an authorized operator must deploy the updated code on-chain. Apps that depend on another team’s program need that operator to make the change.

The memory rules also restrict reads beyond an account’s data and writes to accounts a program cannot modify, and alter the stack layout used by older programs. Anza engineer Alexander Meißner said mainnet replay led the team to contact most developers whose apps would have failed, and that they made fixes; rarely used paths may still escape replay if they were absent from the sampled transactions.

Anza separated the memory rules from direct mapping so developers could test the new behavior while account data was still copied. Direct mapping lets the program virtual machine access data where it already resides; the old path can copy account payloads as many as four times for an instruction with one cross-program call. The tracker listed the two switches one epoch apart on testnet and devnet. Validators get the copying savings when direct mapping activates, but the effect on user transaction times remains unclear.

More news

All news
Attacker turns 5.2M unbacked CYBER into 575 ETH after Solana mint Bearish Cyber Bridge Drain Leaves Ethereum Lockbox Bare Bearish A Single Valid Signature Emptied Chainflip’s $4.86M Ethereum Vault Bearish Spot XRP ETFs Hit Negative Record as SOL Funds Finally Break Their Streak Bearish Quantum-Proofing Crypto Could Come at a Staggering Cost Bearish