-
Notifications
You must be signed in to change notification settings - Fork 532
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
renaming fork-previous-global-slot to fork-genesis-slot #14014
renaming fork-previous-global-slot to fork-genesis-slot #14014
Conversation
!ci-build-me |
…-previous-slot-to-genesis-slot
!ci-build-me |
@@ -174,8 +174,7 @@ module Constraint_constants = struct | |||
fork_previous_state_hash | |||
; previous_length = Mina_numbers.Length.of_int fork_previous_length | |||
; previous_global_slot = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this record field need to change, also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you'll need to change the field name in type Fork_constants.t
and also Runtime_config.Fork_config.t
.
That affects the hard fork integration test, which isn't run in PR CI.
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
…inaProtocol/mina into renaming-previous-slot-to-genesis-slot
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please include the reason for this change in the PR description and also, how this is intended to be used.
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!ci-build-me |
!approved-for-mainnet |
Explain your changes:
Renaming
fork_previous_global_slot
tofork_genesis_global_slot
. We are doing this change because when generating the new genesis block for a hard-forked chain, we are taking the value offork_previous_global_slot
as the new genesis slot number. So if we give it theslot
number of previous block, then we could have 2 blocks that have same slot number on the chain. This renaming is intended to inform the user that thisslot
number is for the new genesis block, so it should be given a value such asprevious_global_slot + 1
.Explain how you tested your changes:
*
Checklist: