-
Notifications
You must be signed in to change notification settings - Fork 759
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
feat: Short Block Interval Phase One: 1.5 seconds for BEP-520 #618
base: develop
Are you sure you want to change the base?
Conversation
f5ae956
to
31c4c06
Compare
31c4c06
to
3e1318e
Compare
3e1318e
to
37d0b23
Compare
@@ -385,6 +390,7 @@ contract BSCValidatorSet is IBSCValidatorSet, System, IParamSubscriber, IApplica | |||
function getMiningValidators() external view override returns (address[] memory, bytes[] memory) { | |||
uint256 _maxNumOfWorkingCandidates = maxNumOfWorkingCandidates; | |||
uint256 _numOfCabinets = numOfCabinets > 0 ? numOfCabinets : INIT_NUM_OF_CABINETS; | |||
uint256 _shuffleInterval = 200; |
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.
There is no mention of shuffleInterval in the BEP-520. Is it supposed to be same as epoch or something else?
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.
just use it to replce EPOCH
here,
before the change, EPOCH = 200, so the result is the same as before.
The effect is the same as following:
change name of the constant var EPOCH
to shuffleInterval
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.
the purpose is let the shuffle process not depend on a var called Epoch
Length
because, Epoch Length will change from bsc client side.
Description
BEP-520: Short Block Interval Phase One: 1.5 seconds
Rationale
tell us why we need these changes...
Example
add an example CLI or API response...
Changes
Notable changes: