Skip to content

feat: add new SVM feature gates for LiteSVM 0.9.0,Add 4 new features,…#471

Merged
MicaiahReid merged 3 commits intosolana-foundation:mainfrom
subhdotsol:main
Jan 12, 2026
Merged

feat: add new SVM feature gates for LiteSVM 0.9.0,Add 4 new features,…#471
MicaiahReid merged 3 commits intosolana-foundation:mainfrom
subhdotsol:main

Conversation

@subhdotsol
Copy link
Copy Markdown
Contributor

Adds 4 new SvmFeature variants and update mappings to prepare for LiteSVM 0.9.0 compatibility.

Changes

  • Add 4 new features: LiftCpiCallerRestriction, RemoveAccountsExecutableFlagChecks, LoosenCpiSizeRestriction, DisableRentFeesCollection
  • Update feature count: 42 → 46
  • Add feature-to-ID mappings (37 active, 9 pending)
  • Update default_mainnet_features() with new disabled features

Test Results

All 48 tests pass.


Points to Note

9 Features Return None

Due to agave-feature-set 3.0.0 limitations (Solana SDK 3.1.0 not published to crates.io yet), these features return None:

  • AccountDataDirectMapping
  • ProvideInstructionDataOffsetInVmR2
  • IncreaseCpiAccountInfoLimit
  • VoteStateV4
  • PoseidonEnforcePadding
  • FixAltBn128PairingLengthCheck
  • LiftCpiCallerRestriction
  • RemoveAccountsExecutableFlagChecks
  • DisableRentFeesCollection

Follow-up Required

When Solana SDK 3.1.0 is released:

  1. Update Cargo.toml dependencies to 3.1.0
  2. Add missing imports to svm.rs
  3. Change the 9 None mappings to Some(feature_name::id())
  4. Update test assertion from 9 unmapped to 0 unmapped
Screenshot 2026-01-10 at 4 05 25 AM

Copy link
Copy Markdown
Collaborator

@MicaiahReid MicaiahReid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, works for me! Thanks @subhdotsol!

@subhdotsol
Copy link
Copy Markdown
Contributor Author

@MicaiahReid when will this get merged ?

@MicaiahReid MicaiahReid merged commit 6025a76 into solana-foundation:main Jan 12, 2026
4 checks passed
@MicaiahReid MicaiahReid mentioned this pull request Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants