CONNECT WITH US
Web3 & Blockchain

Web3 & Blockchain

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

CryptoSlate logo

Published on

Add as a preferred source on Google
Solana’s new memory checks could make some older app transactions fail

A replay of mainnet traffic exposed one way older Anchor code can fail. The checks still await mainnet activation, and a separate change would cut the work validators do to copy data.

Solana’s planned memory checks could make some app transactions fail even when the rest of the app keeps working. Developers have already seen one example in replayed mainnet transactions. Older code built with the Anchor framework could try to save an account’s data after handing control of that account to another program.

Anza, which develops Solana’s Agave validator software, resumed general mainnet feature activations on November 19. Its November 20 feature tracker lists the memory checks and a separate change called account data direct mapping as pending, with no mainnet activation epoch or slot for either. Direct mapping is designed to spare validators the work of repeatedly copying program data.

Anza’s November 20 tracker listed both switches as pending on Solana mainnet, with no activation slot for either.

The checks can reject a write to an account the program no longer owns, even while validators still use copied data.

The paths show conditional runtime behavior. Their lengths carry no timing or performance measurement.

Conceptual diagram from SIMD-0460, the original runtime proposal and Agave’s implementation split. The same check branches to a rejected access or to two possible routes for an allowed access.

The paths show conditional runtime behavior. Their lengths carry no timing or performance measurement.

The memory checks can reject a read that runs past the end of an account or a write to an account the program cannot modify.


Source link

Disclaimer

We strive to uphold the highest ethical standards in all of our reporting and coverage. We TheMorningPulse.fyi want to be transparent with our readers about any potential conflicts of interest that may arise in our work. It's possible that some of the investors we feature may have connections to other businesses, including competitors or companies we write about. However, we want to assure our readers that this will not have any impact on the integrity or impartiality of our reporting. We are committed to delivering accurate, unbiased news and information to our audience, and we will continue to uphold our ethics and principles in all of our work. Thank you for your trust and support.