Repository navigation
Feature Gate Setup Process
This page seeks to explain why feature gates are used, how they work, and some of the mechanics for setting them up. Enablement is in a separate wiki page here.
Feature gates are useful for ensuring the entire cluster is in sync when enabling some capability. Without feature gates, each validator would asynchronously enable the capability whenever they decide to update or pass some config parameter. This could tear the cluster apart if a feature results in different account state, hashing, ticks, etc. as updated vs. non-updated nodes will not be able to reach consensus. Any code update that changes whether a specific transaction will succeed or fail must be feature gated.
Feature gates work by creating a keypair so that features can be identified by a pubkey (and activated via private key). The set of active/inactive features are stored in the Bank, and the set of active features gets updated on epoch boundaries (which is the exact same time with respect to slots across the cluster). Conditional logic can then be used in the code which queries whether a feature has been activated.
After merging a PR to Agave that introduces a new feature gate, automation will create a new issue in the Feature Gate Tracker repo. From there, members of the release engineering team will coordinate with you.
- General
- Feature Gates
- Technical
- Policy
- Schedules
- Restart Instructions