Home / Docs / Consensus

Consensus

XE does not use consensus for normal operation. Consensus only activates for equivocation — when an account publishes two or more blocks at the same position (same Previous hash).

Four Stages

StageComponentDescription
1. DetectionConflict DetectionDetects two blocks with same Previous hash
2. WeightDelegationRepresentatives derive voting power from delegated XUSD balances
3. VotingVotingRepresentatives cast signed votes
4. ResolutionQuorum67% of delegated weight agrees → winner confirmed

Quorum Threshold

blockWeight * 100 >= totalWeight * 67

Uses big.Int arithmetic. Deterministic tie-breaking: vote for lexicographically lowest hash.

Fallback Resolution

If 67% is unreachable (non-voting reps inflate total), a fallback triggers after 10 seconds when all actual voters agree unanimously.

Delegation

Conflict Detection

Voting

Quorum Manager