Skip to content

Fast finality#21

Open
realuncle wants to merge 54 commits intoBlockorus:masterfrom
node-real:fast_finality
Open

Fast finality#21
realuncle wants to merge 54 commits intoBlockorus:masterfrom
node-real:fast_finality

Conversation

@realuncle
Copy link
Collaborator

No description provided.

unclezoro and others added 19 commits April 6, 2022 11:44
* Implement bep-127 and bep-131 (bnb-chain#131)

* [R4R]: new implement of BEP-127 (#3)

* feat: new implement of bep-127 and test

* fix: review comments

* fix: add re-init for validatorExtraSet

* fix: template file sync

* fix: validatorExtraSet should init at the same time as `maxNumOfMaintaining` init

* modify config

* fix: maintainInfo leak at next 24-hours

* chores: add comment

* fix: `isCurrentValidator` error before `validatorExtraSet` init

* chore

* test: add test case for BSCValidatorSet

* test: add view test case for BSCValidatorSet

* chore: modify comments

* fix: numOfMaintaining modification on edge case

* fix: review comments

* test: add code size log

* chore: optimize new ValidatorExtra

* fix: numOfMaintaining edge case

* fix: add exitMaintenance event

* fix: add exitMaintenance event

* chore

* fix: remove unused code

* chore

* implement bep-131

* update ut

* update logic of felony function

* update the getMiningValidators function

* update logic of the update maxNumOfCandidates function

* fix calculating epoch number

* update _exitMaintenance

* fix comments

* update readme

* fix testcase on slash and validator contract

* fix update maxNumOfMaintaining

* fix: bug that validatorSet order was changed incorrectly while _felony in _forceMaintainingValidatorsExit, using numOfCabinets not init

* feat: modify slots number

* chore: rename var in loop

* Fix audit report of BEP-127 and BEP-131 (Blockorus#17)

* fix: issue #BSC-007, add more comment to explain `enterMaintenanceHeight` check

* fix: issue #BSC-001 and #BSC-002, #BSC-003, improve code to save gas

* fix: issue #BSC-008, add comment to explain this

* feat: sync template code with origin code

* feat: rename len to validatorsNum

* chore: modify comment for check

* chore: sync template code

* chore: add more comments to explain `24-hour period`

* fix: k = 0 => k

* fix: j = 0 => j

* feat: sync template code for SlashIndicator.template

Co-authored-by: gothery001 <gothery001>

* fix: Bug fix that incorrectly modification of fixing audit report (Blockorus#18)

* fix: incorrectly modified `initValidatorExtraSet`

* chore: sync template code

Co-authored-by: gothery001 <gothery001>

* fix: bug that slash count calculation problem while update validator set (Blockorus#19)

* feat: add more test case to test slashCount calc problem

* fix: fix workValidatorCount calc incorrectly changed while updateValidatorSet

* chores: sync tmeplate code

* feat: add generate-qa script

* feat: close gas report as default

* feat: modify tests

* chores: add more comments

* chores: add more comments

Co-authored-by: gothery001 <gothery001>

Co-authored-by: dean65 <[email protected]>
Co-authored-by: dean <[email protected]>
Co-authored-by: realuncle <[email protected]>
Co-authored-by: realuncle <[email protected]>
Co-authored-by: realuncle <[email protected]>
Co-authored-by: gothery001 <gothery001>

* chore: modify generate script line in package.json (bnb-chain#139)

* chore: modify generate script line in package.json, generate latest genesis.json for mainnet

* chore: modify readme

Co-authored-by: cosinlink <cosinlink>

Co-authored-by: Gothery <[email protected]>
Co-authored-by: dean65 <[email protected]>
Co-authored-by: dean <[email protected]>
Co-authored-by: realuncle <[email protected]>
Co-authored-by: realuncle <[email protected]>
Co-authored-by: realuncle <[email protected]>
* [WIP]Fast Finality: reward distribution and slash parts

* Update codes

* Fix review comments and update test

* Fix code errors related contract SystemReward and BSCValidatorSet

* Fix code errors related invalid opcode and add new api

* Optimize gasused of updateValidator and update test

* Optimize gasused of updateValidator and update test

* Minor error fixed

* Fix review comments and update scripts

* Fix init issue

* Fix external view issue and update test

* Fix review comments
Update slash evidence vote addr field
pythonberg1997 and others added 25 commits August 31, 2022 14:16
fix: update cross chain logic of native stake
* fix: add transferGas to updateParam method

* fix: change the storage slot of `transferGas` for compatibility
* add foundry test and clean unused files

* update readme
# Conflicts:
#	.gitignore
#	.prettierignore
#	.prettierrc
#	README.md
#	abi/crosschain.abi
#	abi/tokenhub.abi
#	genesis-template.json
#	genesis.json
#	package.json
#	test/BSCValidatorSet.js
#	test/GovHub.js
#	test/Slash.js
#	test/SystemReward.js
rebase: fast finality feats merge with master branch
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.

7 participants