-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finish epoch processing split (#11243)
* added `getEpochInfoOfEpoch(uint256)` to get epoch info of specific epochs * updated natspec * PR feedback * Use constant * breakup test; added more * ++ registry to precompile contract * added elected to epoch info * numberValidatorsInSet backwards compatibility * validator address & validatorSigner address from set * support `getEpochNumber()` backwards compatibility in UsingRegistry * using `getEpochByBlockNumber` instead of `getEpochByNumber` * limit span of loop only to L2 blocks * use binary search instead of blind loop * ++ natspec * added getEpochNumberOfBlock() backwards compatibility support * ++ electedSigners * make usingPrecompile onlyL1 contract * ++ precompile override contract * fix epoch manager bug and mock * using precompileOverride in validators contract * wording * using indexed function when querying specific validator accounts or signers on L2 * fixed failing test * using independent mapping for elected accounts and signers * removed old elected list * support 0.5.13 contracts using precompiles * -- registry import * ++ registry in PrecompilesOverride * ++ more tests * increase gaslimit * moved election history update to epoch processing start. * unused var * clean up * fixed e2e test * simplify code * Finish epoch processing split * FinishEpochProcessing split e2e test * setToProcessGroups unit tests * process group unit tests * Removed support for election historical data after that it's unlikely to be in use by external parties * PR feedback * -- spacing * reorder state var * stat var reorder * small fix * delete electedSigners at end of epochprocessing * CI fix * added comment * prettify * Pr comments --------- Co-authored-by: soloseng <[email protected]> Co-authored-by: Martín Volpe <[email protected]>
- Loading branch information
1 parent
7566b18
commit 0ae4b8c
Showing
5 changed files
with
494 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.