feat: svm feature handling in CLI #423
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SVM Feature Flags
Surfpool allows you to control which Solana Virtual Machine (SVM) features are enabled when running your local simnet. By default, surfpool uses mainnet-compatible features to ensure your programs behave the same way they would on mainnet.
Default Behavior
By default, surfpool enables all features that are currently active on Solana mainnet-beta. Features that are not yet activated on mainnet are disabled.
CLI Options
Enable a specific feature
Disable a specific feature
Enable all features (bleeding edge)
Combine options
Features Disabled by Default (Not Active on Mainnet)
The following features are not yet active on Solana mainnet and are disabled by default:
blake3-syscall-enableddeprecate-legacy-vote-ixsdisable-sbpf-v0-executionreenable-sbpf-v0-executiondisable-zk-elgamal-proof-programenable-extend-program-checkedenable-loader-v4enable-sbpf-v1-deployment-and-executionformalize-loaded-transaction-data-sizemove-precompile-verification-to-svmmove-stake-and-move-lamports-ixsstake-raise-minimum-delegation-to-1-solAll Available Features
Examples
Test with mainnet-compatible features (default)
Test with upcoming loader v4
Test with all bleeding-edge features
Disable stricter ABI constraints for legacy program testing