Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

consortium-v2: make finality vote weight proportional to staked amount #413

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Mar 11, 2024

Currently, the finality vote weights of all validators are the same. After this commit, the finality vote weight is based on the staked amount of the validator. The rule of finality vote weight follows what is stated in REP-0010: Introducing Rotating Validators

- If the staked amount of a validator is smaller than or equal to 1/22 of total stake, the weight is directly proportional to the staked amount.
- If the staked amount of a validator is bigger than 1/22 of total stake, the weight equals 1/22 of total stake.

Currently, the finality vote weights of all validators are the same. After this
commit, the finality vote weight is based on the staked amount of the validator.
The rule of finality vote weight follows what is stated in REP-0010: Introducing
Rotating Validators

	- If the staked amount of a validator is smaller than or equal to 1/22
	  of total stake, the weight is directly proportional to the staked
amount.
	- If the staked amount of a validator is bigger than 1/22 of total
	  stake, the weight equals 1/22 of total stake.
@minh-bq minh-bq force-pushed the feat/finality-staked-weight branch from 07a0736 to 496520a Compare March 11, 2024 11:12
@minh-bq minh-bq closed this Mar 26, 2024
@minh-bq minh-bq deleted the feat/finality-staked-weight branch March 26, 2024 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant