Solana’s new memory checks could make some older app transactions fail
Source: CryptoSlate — Read the original ↗
Summary
Solana's planned memory checks, listed as pending on Anza's November 20 tracker with no mainnet activation date, could cause some app transactions to fail. Replays of mainnet traffic showed older Anchor-built programs trying to write account data back after handing ownership of that account to another program, which the new rules reject. Anchor 1.2.2 fixes this by skipping the write when the bytes are unchanged, but the fix only helps once each program's upgrade authority deploys the rebuilt code.
Key points
- The memory checks and account data direct mapping are both pending on mainnet with no activation epoch set.
- Older Anchor code can fail when it writes back to an account it already handed to another program.
- Anchor 1.2.2 includes the fix, but affected programs must be rebuilt and redeployed on-chain.
- Direct mapping saves validators copying work; the effect on user transaction times is unclear.
Why it matters: Apps relying on older Anchor programs could see specific transactions fail unless operators redeploy fixed code.
Tóm tắt
Các kiểm tra bộ nhớ mà Solana dự kiến triển khai, đang ở trạng thái chờ trên trình theo dõi ngày 20/11 của Anza và chưa có ngày kích hoạt mainnet, có thể khiến một số giao dịch của ứng dụng thất bại. Khi phát lại lưu lượng mainnet, các nhà phát triển thấy chương trình cũ viết bằng Anchor cố ghi lại dữ liệu tài khoản sau khi đã chuyển quyền sở hữu tài khoản đó cho chương trình khác, điều mà quy tắc mới sẽ từ chối. Anchor 1.2.2 sửa lỗi bằng cách bỏ qua thao tác ghi nếu dữ liệu không đổi, nhưng chỉ có tác dụng khi bên có quyền nâng cấp triển khai lại mã.
Điểm chính
- Kiểm tra bộ nhớ và direct mapping dữ liệu tài khoản đều đang chờ trên mainnet, chưa có epoch kích hoạt.
- Mã Anchor cũ có thể lỗi khi ghi vào tài khoản đã chuyển cho chương trình khác.
- Anchor 1.2.2 có bản sửa, nhưng chương trình bị ảnh hưởng phải build lại và triển khai on-chain.
- Direct mapping giúp validator đỡ sao chép dữ liệu; tác động đến thời gian giao dịch của người dùng chưa rõ.
Vì sao quan trọng: Ứng dụng dùng chương trình Anchor cũ có thể gặp giao dịch lỗi nếu bên vận hành không triển khai bản sửa.
摘要
Solana计划推出的内存检查在Anza 11月20日的追踪表中仍处于待定状态,尚无主网激活时间,可能导致部分应用交易失败。主网流量回放显示,用Anchor构建的旧程序在把账户所有权交给另一个程序后仍尝试写回账户数据,而新规则会拒绝这种操作。Anchor 1.2.2通过在数据未变时跳过写入来修复,但只有程序升级权限方重新部署后才生效。
要点
- 内存检查和账户数据直接映射均在主网待定,未设激活纪元。
- 旧版Anchor代码在写回已移交的账户时可能失败。
- Anchor 1.2.2包含修复,但受影响程序需重新构建并链上部署。
- 直接映射可减少验证者的复制工作,对用户交易时间的影响尚不明确。
为何重要: 依赖旧Anchor程序的应用若运营方不部署修复,部分交易可能失败。
Original summary written by VolumeVein from the publisher’s article; no full text is republished. Facts belong to the original report — read it for full context. Not financial advice.
Read the full article on CryptoSlate ↗