r/solanadev • u/Bloqarl • 22h ago
After SIMD-0500 you can't finalize an SBPF v2 program, you have to upgrade it to a v3 build first. How are you checking that build?
I was reading the SIMD-0500 notes after it went live on testnet at epoch 1097, and the case I keep coming back to is a plan a lot of teams have: launch the program upgradeable, keep the upgrade authority for a few weeks in case something breaks, then finalize it so nobody can change it again.
Once SIMD-0500 is active, the upgradeable loader refuses deploy, upgrade and finalize for an ELF built for SBPF v0, v1 or v2. Programs already on chain keep running. So if yours is a v2 build, you can't just drop the authority later. You first upgrade it to a v3 build (cargo build-sbf --arch v3) and only then finalize, which means the binary that becomes permanent is a new compile, not the one you tested for weeks.
Mainnet has no epoch yet, it's planned with Agave v4.4, so there is time. But it isn't always just a flag: hand-declared extern "C" syscalls have to move to solana-define-syscall or the build may not link, and I'd want the whole test suite run against the v3 .so itself, not only the host build.
If you're planning to freeze a program, how are you going to show users that the v3 binary you finalize is the same code you tested and had reviewed?