Staking-driven set live on Enclave since block 97,200
xDEVS Chain validators run Tendermint-style BFT consensus (Malachite). The Enclave testnet (chain id 717171) runs 4 validators on Oracle Cloud (two in Hyderabad, two in Mumbai), fixed in genesis.json. Phase 3 adds a validator set chosen by stake in the Staking system contract (0x0000000000000000000000000000000000001000): registered validators with enough self-stake are ranked by stake, the top ones sign blocks, they earn block rewards, and misbehaviour is slashed.
The node implements it behind an activation height (stakingValidatorsBlock in the genesis config). On Enclave it has been active since block 97,200 (19 November 2026, about 21:45 UTC), with release v0.3.0-enclave.1. Until then the four genesis validators stay in force. Block 97,200 is an epoch boundary (27 × 3,600), so validators registered before it can join at block 97,201.
Time is divided into epochs of epochLength blocks (3,600 on Enclave, about 2 hours at 2 s blocks). Block B is an epoch boundary when B % 3600 == 0.
At each boundary the node calls Staking.onEpoch(), which selects the top 100 eligible validators by bonded stake (ties: lower operator address first). That set signs blocks B + 1 to B + 3600. It is fixed for the whole epoch on every node.
Voting power = bonded stake in whole tXDS (self-stake plus delegations).
Eligible = registered, not jailed, not tombstoned, self-stake ≥ 10,000 tXDS.
Jailing, tombstoning or exiting during an epoch removes the validator from the contract's active set at once (it stops earning), and from consensus at the next boundary.
Each height has one proposer per round, a pure function of the height's validator set, the height and the round:
Original rule (in force on Enclave today): walk the validators in address order to (height + round) mod total_power. This rotates only when every validator has power 1. With Enclave's 12,500,000 each, the validator with the lowest consensus address (val-4) proposes every block, which is why every block's miner is val-4's fee recipient.
Rotating rule, from the genesis activation height proposerRotationBlock on: with equal powers, validators[(height + round) mod n] in address order (round-robin; a new round moves to the next validator). With unequal powers, each validator proposes its share of power, interleaved rather than in runs.
The rotating rule is a fork. On Enclave it is live since block 225,000. On other networks it stays off until proposerRotationBlock is scheduled, and every validator must upgrade before that height. See the runbook.
xdevs-cli keygen --consensus --out consensus_key.json # prints the Ed25519 public key
In config.toml: [validator] enabled = true, key_file = "consensus_key.json", and [p2p] persistent_peers pointing at the existing validators. A key that is not in the set yet is fine: the node follows the chain and starts signing when it is selected. On Enclave, the validators' firewalls use an allow-list: the maintainers must allow your IP on the consensus port (30333) first.
Register from the account that will operate the validator, sending at least the minimum self-stake (10,000 tXDS) as value:
500 is the commission in basis points (5%, at most 20%). One registration per operator address; the consensus key is bound to it for good.
Wait for the next epoch boundary. Check your status with getValidator(operator) (status: 1 Candidate, 2 Active, 3 Jailed, 4 Tombstoned, 5 Exited) and the signatures in xdevs_getCommitCertificate.
Others can delegate(validator) to you (minimum 1 tXDS); stake leaves through undelegate and a 1-day unbonding period (withdrawUnbonded).
From the activation on, every block credits a fixed block reward to the Staking contract (1 tXDS per block on Enclave, about 1.6% of the supply per year) and calls recordParticipation:
5% of it goes to the block's proposer as a bonus;
the rest is split between the validators that signed the parent block, pro rata to voting power;
each validator keeps its commission, the remainder is shared by its delegators (the operator's self-stake included) pro rata to stake.
Rewards accumulate in the contract; claim them with claimRewards(validator) (the operator also receives its commission there). Priority fees (tips) still go to the proposer's fee recipient; 80% of the base fee is burned and 20% goes to the Treasury.
BFT consensus with stored commit certificates, Ed25519 consensus keys in encrypted keystores, a libp2p node identity and a persistent double-sign guard.
Validator and full-node modes, block sync for late joiners, transaction gossip.
The staking-driven validator set described above, tested on in-process networks (a 5th validator joining, an offline validator jailed, a double-signing validator slashed); it live on Enclave since block 97,200 (runbook).
Phase 5: BLS aggregate signatures for commit certificates.
Phase 6: a long-lived public testnet with 20+ independent validators (no single operator above 1/3 of voting power), a validator onboarding guide, remote signer and sentry-node support, snapshot sync.