-
Notifications
You must be signed in to change notification settings - Fork 568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R4R] BEP-131: Introduce candidate validators onto BNB Smart Chain #131
Conversation
I think for this to be worthwhile, the minimum stake should be reduced. I believe it's still 10,000 BNB? That’s $4.3M at time of this post, much (much) more than any other chain. Fantom, for example, is ~$1M at current price (and there's even an active governance proposal to reduce it). Even Ethereum “only” requires $128K (assuming $4K ETH) to be a validator (which I realize is not directly comparable due to a different validation mechanism, but still relevant) I know that may seem like a rather silly request, since the lowest non-active validator currently holds 20K BNB (source: https://www.bnbchain.world/en/staking) and there’s only room for a couple more standby validators to reach 41. But it remains a huge barrier to entry for such a low chance for any rewards, thus becoming a relative non-starter to any entity who even remotely has the potential to become a “Top 21” - at least without incentives (which I note other chains are also doing). [Slightly off-topic, but I notice this BEP uses the "BSC" moniker, despite Binance's insistence on addressing the network as "BNBchain", regardless of reference to the Beacon chain or the EVM. I heavily support the retention of this acronym.] |
The |
Is there any discussion of increasing the active validators from 21 to some higher number? Has there been tests on the impact this would have on performance? I think the biggest complaint I see from the crypto community is that BNB Chain has their validators selected by Binance. Opening it up arbitrarily would improve the perception of it. |
Hi.
I have been struggling just to transfer assets that way I was scam/hack
with old personal information.
Thanks
…On Thu, 5 May 2022 at 11:47, zjubfd ***@***.***> wrote:
Merged #131 <#131> into master.
—
Reply to this email directly, view it on GitHub
<#131 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXBZP22MVF3G2MWHZV24QULVIOKLJANCNFSM5ONDQGKQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi, I have read that there will be a random selection of 19 out of 21 validators every x blocks. The two not chosen validators become then candidates or inactive or something like that? Does this imply that it is impossible to delegate stakes to validators without any downtime? Roughly 10% of the time given that 2 out of 21 are always inactive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😀
BEP-131: Introduce candidate validators onto BNB Smart Chain
1. Summary
This BEP introduces candidate validators onto BNB Smart Chain to improve the liveness and robustness of the network.
2. Abstract
BNB Smart Chain will introduce more validators, e.g. another 20 inactive validators, into the validator set as backups, which will be called "Candidates".
Candidates will produce blocks and charge gas fees on BNB Smart Chain mainnet, but in a much less chance than the active validator set of 21 elected. A decent motivation is expected to be maintained so that the candidate validators are willing to ensure the quality and help secure BNB Smart Chain.
3. Status
This BEP is a draft.
4. Motivation
Nowadays, BNB Smart Chain has 21 active validators and many inactive validators. The inactive validators have no reward so the incentive for the runner to ensure the node quality and the delegation from the BNB holders are not enough.
In order to decentralize the network further, more validators should be introduced. Besides increasing the anti-censorship, it always increases the robustness and availability of the network. BNB Smart Chain should survive even if more than half of the validator set were censored or taken down in an either incidental or hostile way.
5. Specification
5.1 Overview
In the current version, the BSC validator set is determined by its staking and delegation logic, via a staking module built on BNB Beacon Chain for BSC, and propagated every day UTC 00:00 from BNB Beacon Chain to BSC via Cross-Chain communication.
Based on this implementation, the BNB Beacon Chain can propagate more validators to BSC, and BSC can adopt a flexible strategy to choose working validators from both the top 21 staked active validators and less staked candidates for each epoch.
In this way, the robustness and liveness of the BNB Smart Chain can be improved, and more validator operators will be motivated to join.
5.2 Workflow
Following is a simple diagram to explain the workflow of the validator setting and getting. Usually, M is smaller than N so that candidates get less chance to propose blocks.
5.3 Roles
The top 21 stake validators in daily election snapshots get the most chance of producing blocks.
The top (21, 21+ MaxNumOfCandidates] staked validators in daily election snapshots get a small chance to produce blocks.
The rest validators get no chance to produce validators.
5.4 Cross Chain Package
BNB Beacon Chain will send the cabinet and candidate validator set information to the validator contract on BNB Smart Chain every day through the cross-chain package.
5.5 Election
During the consensus process, BNB Smart Chain will reacquire 21 new working validators through the interface getValidators of validator contract every epoch. On this basis, we can adopt a flexible strategy in the getValidators to achieve the goals.
Election Strategy
First select N validators randomly from Cabinet, and then select M validators randomly from the unselected Cabinet validator and candidates, and finally form a group of 21 validators.
In order to ensure that the randomness can not be manipulated, epochNumber = BlockHeight / 200 is chosen as the random source. epochNumber is a fixed value within one epoch and is incremental across the epoch.
Following is the simplified pseudocode demonstrate how the election works:
The randomness can actually be predicted. But since
consensusAddr
are limited to change andepochNumber
is incremental across the epoch, the randomness can not be manipulated by anyone.When the total number of available validators is less than 21, the random selection rule will not be applied.
The randomness can actually be predicted. But since consensusAddr are limited to change and
epochNumber
is incremental across the epoch, the randomness can not be manipulated by anyone.5.5.1 Governance
The following parameters can be governed:
5.6 Security
A higher staked validator is more trustworthy. Based on this assumption, we let the Top 21 validators generate blocks in turn to maintain a certain degree of security, and the other validators are randomly selected to ensure that these validators will not collude and cause damage to the overall network.
5.7 Liveness
In addition to Cabinet validators, Candidate validators can get the opportunity to propose blocks and get rewards accordingly. Through the reward mechanism, Candidates can be more motivated to actively maintain the nodes. On the other hand, all the slash rules also work on Candidate validators to ensure the malicious or negative behaviors from Candidates will be punished.
Cabinet and Candidates will be randomly chosen to form the 21 working validators each epoch. The liveness of the network is usually decided by Cabinet validators who are the majority of the working validators. It means the network is still alive even if a large percentage of Candidates go offline. However, the network still suffers a liveness crisis if the majority of Cabinet go offline.
5.8 Robustness
Through the new mechanism, BNB Smart Chain no longer has only 21 validators but has more candidates to choose from. When any active validators encounter instability problems, they can be replaced by candidates, thereby improving the overall robustness.
6. License
The content is licensed under CC0.