-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Refactor and update common.getHardforkByBlockNumber to addres…
…s post merge hfs (#2313) * common: Refactor and update the hardfork cal to address post merge hfs * make strick check optional for post merge hardforks * add tests for post merge hardforks using sepolia * simplify getHardforkByBlockNumber * remove duplicate hf * clarify comment * add post merge hf * further simplify the fn and add test to enhance coverage * update comments * remove hash to add it as a separate pr to not pollute this one * fix typo Co-authored-by: acolytec3 <[email protected]> * comment improvement * undo mainnet json changes * simplify dup ttd check * fix spec * fix typo Co-authored-by: acolytec3 <[email protected]> * fix typo Co-authored-by: acolytec3 <[email protected]> * improve clarity * simpilfy futher based on acolytec3s logic * fix some more validations * remove extra if * improve wording Co-authored-by: acolytec3 <[email protected]> * move spec, add test for merge hf with block num * relocate test * relocate test * lint * add merge block numbers * add merge forkhash * handle no hardfork found case * Fix nits Co-authored-by: acolytec3 <[email protected]>
- Loading branch information
Showing
7 changed files
with
208 additions
and
48 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
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