NETConnecting

Rule changes

How the validator set votes a change to the net's rule, when it passes and when it is in force.

From slot 8,640,000 the validator set changes the net's rule by vote. A change names activation slots by key and the oldest node version that carries them:

json
{ "keys": { "genesisStepFromSlot": 9072000 }, "minVersion": "0.4.37" }

The keys a node applies are the genesis rule's activation slots, genesisStepFromSlot and nativeMintFromSlot (Configuration). A change carries one to eight keys, each a slot that is a bridge epoch boundary.

Voting

A validator identity votes by signing a Memo that names the change, acrux-rule-v1: followed by the change's JSON, as the transaction's fee payer and the Memo's only account. acrux rule vote sends it. The identity pays the fee and keeps the fee-payer reserve (The reserve rule), so it needs 1,005,000 lamports.

A vote counts by the identity's stake in the admitted set of the epoch it lands in (Admission), once per identity. The same keys and minVersion are the same change. Votes count within one epoch: a change still open when the epoch ends starts the next with none. Up to sixteen changes are open at once.

Passing

Once the identities that signed hold 60% of the epoch's admitted stake, the change has passed and is in force from the next bridge epoch boundary. Every slot it names is at or after that boundary. A change in force takes no more votes.

A key's activation slot is the genesis rule's, replaced by each change in force that names it, in the order they took force. A key moves only until it activates; from its activation slot on, it stays where it is.

A node older than the change

At the boundary a change takes force, a node older than its minVersion, or one that doesn't apply one of its keys, stops before that slot instead of forking:

text
The rule <hash> in force from slot <slot> needs node <minVersion> or later; this node is <version>. Update the node to carry on.

Updated, it carries on from that slot (Install acrux).

Reading the rules

getRules and GET /v1/rules give the genesis rule's keys, the keys the node applies and every change voted on, with its voters, signed stake and the slot it is in force from.