-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Hardcoded genesisValidator Root instead of computing #14392
Conversation
538c138
to
8063971
Compare
@@ -19,7 +19,6 @@ func TestUpgradeToBellatrix(t *testing.T) { | |||
require.NoError(t, err) | |||
|
|||
require.Equal(t, preForkState.GenesisTime(), mSt.GenesisTime()) | |||
require.DeepSSZEqual(t, preForkState.GenesisValidatorsRoot(), mSt.GenesisValidatorsRoot()) |
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.
Don't need this because GenesisValidator fn is removed
@@ -19,14 +19,6 @@ func (b *BeaconState) GenesisTime() uint64 { | |||
return b.genesisTime | |||
} | |||
|
|||
// GenesisValidatorsRoot of the beacon state. | |||
func (b *BeaconState) GenesisValidatorsRoot() []byte { | |||
b.lock.RLock() |
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.
Removed this one
1b500a2
to
a77e32b
Compare
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 do not modify the state package, the genesis validator root is still a valid field in the state
What type of PR is this?
What does this PR do? Why is it needed ?
Replaced hardcoded value everywhere where fn was called to compute it from state calling st.GenesisValidatorRoot()
Which issues(s) does this PR fix ?
Fixes
Issue #14364
Other notes for review
I have removed st.GenesisValidator() function and replaced it with hardcoded value whenever its needed in this PR