Skip to content

Commit

Permalink
update state init requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Dec 9, 2024
1 parent b87cadb commit 6e74a91
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions proposals/0072-feature-gate-threshold-automation.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ In the future, this authority could be replaced by validator governance.

The multi-signature authority stages a feature for activation by invoking a new
Feature Gate program instruction: `StageFeatureForActivation`. This instruction
expects the Staged Features PDA (defined below) to either exist or be funded
with enough rent-exempt lamports to initialize state. The processor will
allocate, assign, and initialize the account if it does not exist.
expects the Staged Features PDA (defined below) to either exist or be allocated
with sufficient space and owned by the Feature Gate program, in order to
initialize state.

The `StageFeatureForActivation` instruction is structured as follows:

Expand All @@ -109,7 +109,6 @@ The `StageFeatureForActivation` instruction is structured as follows:
- Feature account
- Staged Features PDA: writable
- Multi-signature authority: signer
- System program (required only for initializing)

Note that features can only be staged in the epoch prior to the target
activation epoch. This means a feature staged by invoking
Expand Down Expand Up @@ -176,8 +175,8 @@ supported by their software.
A node signals its support for staged features by invoking another new Feature
Gate program instruction: `SignalSupportForStagedFeatures`. This instruction
expects the Validator Support Signal PDA (defined below) to either exist or be
funded with enough rent-exempt lamports to initialize state. The processor will
allocate, assign, and initialize the account if it does not exist.
allocated with sufficient space and owned by the Feature Gate program, in order
to initialize state.

The `SignalSupportForStagedFeatures` instruction is structured as follows:

Expand All @@ -187,7 +186,6 @@ The `SignalSupportForStagedFeatures` instruction is structured as follows:
- Validator Support Signal PDA: writable
- Vote account
- Authorized voter: signer
- System program (required only for initializing)

The authorized voter signer must match the authorized voter stored in the vote
account's state.
Expand Down

0 comments on commit 6e74a91

Please sign in to comment.