Module safecoin_sdk::bpf_loader_upgradeable
source · [−]Expand description
An upgradeable BPF loader native program.
The upgradeable BPF loader is responsible for deploying, upgrading, and
executing BPF programs. The upgradeable loader allows a program’s authority
to update the program at any time. This ability break’s the “code is law”
contract the usually enforces the policy that once a program is on-chain it
becomes immutable. Because of this, care should be taken before executing
upgradeable programs which still have a functioning authority. For more
information refer to the loader_upgradeable_instruction
module.
The safecoin deploy
and safecoin program deploy
CLI commands use the
upgradeable BPF loader. Calling safecoin program deploy --final
deploys a
program that cannot be upgraded, but it does so by revoking the authority to
upgrade, not by using the non-upgradeable loader.