Skip to content

Comments

Fix setfinalizer to reject unreachable threshold values#213

Open
heifner wants to merge 1 commit intomasterfrom
feature/bios-setfinalizers
Open

Fix setfinalizer to reject unreachable threshold values#213
heifner wants to merge 1 commit intomasterfrom
feature/bios-setfinalizers

Conversation

@heifner
Copy link
Contributor

@heifner heifner commented Feb 20, 2026

The bios setfinalizer action only validated that the threshold was greater than half the sum of finalizer weights, but did not check that the threshold was actually reachable (i.e. <= weight_sum). A threshold exceeding the total weight can never achieve quorum, which would permanently halt finality.

Add the upper-bound check (ported from Vaulta system contracts). See VaultaFoundation/system-contracts@ea0835b

The bios setfinalizer action only validated that the threshold was
greater than half the sum of finalizer weights, but did not check
that the threshold was actually reachable (i.e. <= weight_sum).
A threshold exceeding the total weight can never achieve quorum,
which would permanently halt finality.

Add the upper-bound check (ported from Vaulta system contracts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant