Key Points
-
Potential transaction failures: Older Anchor programs may attempt unauthorized account writes after transferring ownership during cross-program calls.
-
Available fix: Anchor 1.2.2 skips unnecessary writes when account data remains unchanged.
-
Validator efficiency: Account data direct mapping aims to reduce repeated memory copies during program execution.
Solana is preparing a runtime change that could cause certain transactions from older applications to fail, even when the rest of an app continues operating normally. The issue has already appeared during replay testing of mainnet traffic, prompting attention to outdated programs built with the Anchor framework.
Anza, the developer of Solana’s Agave validator software, resumed general mainnet feature activations on November 19. However, its November 20 feature tracker still listed two changes as pending: new memory checks and account data direct mapping. Neither had a confirmed mainnet activation epoch or slot.
Why older Anchor programs could fail
The memory checks are designed to enforce stricter account access rules. They can reject attempts to read beyond an account’s allocated data or write to an account that a program is no longer authorized to modify.
One compatibility issue involves how older Anchor code handles account ownership during cross-program calls.
A program can call another Solana program and transfer ownership of an account during that instruction. Once the ownership changes, the original program loses permission to modify the account.
Older Anchor code could still attempt to write the account data back when the instruction finished, even if the data had not changed. The previous runtime allowed this operation, but the new memory rules reject it because the original program no longer has write authority.
The result is a failed transaction along the affected execution path, while unrelated transactions from the same application may continue working.
The fix is included in the Anchor 1.2.2 changelog. It compares account data after ownership changes and skips the write when the bytes remain identical.
Applications using affected programs can rebuild and test with the updated framework. For programs deployed through Solana’s upgradeable Loader V3, the authorized upgrade administrator must publish the corrected version. If an application depends on an externally maintained program, its operator must make the update.
Mainnet replay testing does not cover every possible path
Anza engineer Alexander Meißner said the team replayed mainnet traffic to identify applications that could be affected. According to the runtime proposal, most developers whose applications failed during that exercise were contacted and had implemented fixes.
However, replay testing only examines execution paths present in the sampled transactions. Less frequently used instruction paths could still contain compatibility problems if they were absent from the replay data.
Meißner’s January 30 memory rules proposal also explains why developers separated the original implementation into different feature switches. Agave and Firedancer developers wanted the stricter memory rules to move forward without waiting for the separate data-copying change.
Direct mapping could reduce validator workload
The second change, account data direct mapping, targets validator performance rather than application compatibility.
Under the existing execution model, validators copy account data into a program’s virtual machine and copy it back after execution. Cross-program calls can require additional transfers. Meißner’s proposal describes as many as four copies for an instruction involving one cross-program call.
Direct mapping would allow the virtual machine to access account data in its existing memory location, avoiding repeated copying.
Anza’s tracker lists the memory checks and direct mapping one epoch apart on both testnet and devnet. For applications, the critical milestone is activation of the memory checks. The performance benefit for validators will follow when direct mapping becomes active.
The two changes address different parts of Solana’s runtime: stricter memory permissions and more efficient data access. Their separate activation gives developers a clearer testing path, but older programs still need to account for the new rules before mainnet activation.






