coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.59k stars 1.32k forks source link

Add Deactivate Feature Flag to CLI Local Validator #2872

Closed amilz closed 6 months ago

amilz commented 6 months ago

Adds support for --deactivate-feature flag to the solana-test-validator config in Anchor.toml. User must pass an array of feature pubkeys.

Example Anchor.toml

[test.validator]
bind_address = "0.0.0.0"
url = "https://api.mainnet-beta.solana.com"
ledger = ".anchor/test-ledger"
rpc_port = 8899
slots_per_epoch = "32"
warp_slot = "18464"
deactivate_feature = ["GDH5TVdbTPUpRnXaRyQqiKUa7uZAbZ28Q2N9bhbKoMLm", "zkiTNuzBKxrCLMKehzuQeKZyLtX2yvFcEKMML8nExU8"]

After local validator is running you can run solana feature status -ul to check that features are deactivated.

Changes

Fixes #2871

Ref

vercel[bot] commented 6 months ago

@amilz is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.