Skip to content
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

[WIP]Implement Fast Finality #2

Closed
wants to merge 3 commits into from
Closed

[WIP]Implement Fast Finality #2

wants to merge 3 commits into from

Conversation

pythonberg1997
Copy link

SolidityGo and others added 2 commits February 15, 2022 13:53
feat: optimize canEnterMaintenance check

chore: modify var name

chore: optimize code

chore: remove unused comment

chore: remove unused comment

chore: optimize code style

feat: use _safeTransferBNB instead to.transfer

chore: remove unused line

feat: add getSlashThresholds for SlashIndicator and slashCount for BSCValidatorSet

feat: remove unused code

feat: add getSlashThresholds for SlashIndicator

chore: optimize code lint

feat: add _forceMaintainingValidatorsExit in updateValidatorSet

chore: add comments

feat: add maxNumOfMaintaining, maintainSlashScale params

fix numOfFelony check while all validators exit maintenance

fix: review comments

fix: maintainInfo.index issue, use 0 as a `sentinel value`

chore: modify comments

fix: bug about residual maintainInfoMap is not completely cleared

chore: optimize fix about clearing maintainInfoMap

feat: add hardhat config

chore: modify config

chore: modify config

chore: add hardhat config

feat: finish test case

chore: add readme

chore: optimize code structure

fix: bug about Repeated modified maintainingValidatorSet in loop

chore: optimize test

fix: add prettier write for test code

FIX: review comments

fix: accidentally modified code by mistake between `.sol` and `.template`

fix: bug that maintaining validators could skip the misdemeanor/felony

fix: add modification to template

chore: modify case name

chore: remove unused code

feat: add INIT_MAX_NUM_OF_MAINTAINING, INIT_MAINTAIN_SLASH_SCALE = 2;

feat: modify test for init config

fix: bug that slash msg could not be sent by BSCValidatorSet

feat: modify revert check to return

uint256 index = IBSCValidatorSet(VALIDATOR_CONTRACT_ADDR).currentValidatorSetMap(_evidence.valAddr);
require(index > 0, "validator not exist")
( , , , , , , bytes memory BLSKey) = IBSCValidatorSet(VALIDATOR_CONTRACT_ADDR).currentValidatorSet(index - 1)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Way to get the BLS Key of the validator has not yet been decided

This pull request was closed.
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.

2 participants