-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consortium-v2: make the period definition consistent with contract (#638
) * consortium-v2: make the period definition consistent with contract Currently, Ronin detects the start of new period is the first block of an epoch where that block's timestamp is on the different date from first block of previous epoch. However, in contract, the start of new period is the first block of epoch where the parent of it (the last block of previous epoch)'s timestamp is on the different date from the last block of "previous previous" epoch. In this commit, we change the Ronin logic to be consistent with contract after Venoki hardfork. * consortium-v2: remove Tripp hardfork check in IsPeriodBlock IsPeriodBlock is only called when passing Tripp hardfork already so we don't need to check it further inside the function.
- Loading branch information
Showing
3 changed files
with
384 additions
and
56 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
Oops, something went wrong.