Understand that Solana now can resize the PDA account size, but is it currently possible to resize the program size itself? I have written a program and have deployed it to mainnet, and since then I've added a lot more code into it, and am running into program account not big enough issue. Wonder if anyone has run into this issue?

1 Answer 1


It will be soon possible to resize the program data using UpgradeableLoaderInstruction::ExtendProgramData but the feature is currently behind the feature flag.


And the feature flag pull request


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.