mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
Aligning ETH2.0 spec - Update Initial Beacon State (#1518)
This commit is contained in:
parent
e76bf193b4
commit
f3cd076334
@ -36,7 +36,7 @@ func InitialBeaconState(
|
||||
params.BeaconConfig().LatestIndexRootsLength,
|
||||
)
|
||||
for i := 0; i < len(latestIndexRoots); i++ {
|
||||
latestRandaoMixes[i] = params.BeaconConfig().ZeroHash[:]
|
||||
latestIndexRoots[i] = params.BeaconConfig().ZeroHash[:]
|
||||
}
|
||||
|
||||
latestVDFOutputs := make([][]byte,
|
||||
@ -100,8 +100,8 @@ func InitialBeaconState(
|
||||
LatestIndexRootHash32S: latestIndexRoots,
|
||||
PreviousEpochStartShard: params.BeaconConfig().GenesisStartShard,
|
||||
CurrentEpochStartShard: params.BeaconConfig().GenesisStartShard,
|
||||
PreviousCalculationEpoch: params.BeaconConfig().GenesisSlot,
|
||||
CurrentCalculationEpoch: params.BeaconConfig().GenesisSlot,
|
||||
PreviousCalculationEpoch: params.BeaconConfig().GenesisEpoch,
|
||||
CurrentCalculationEpoch: params.BeaconConfig().GenesisEpoch,
|
||||
PreviousEpochSeedHash32: params.BeaconConfig().ZeroHash[:],
|
||||
CurrentEpochSeedHash32: params.BeaconConfig().ZeroHash[:],
|
||||
|
||||
@ -152,7 +152,7 @@ func InitialBeaconState(
|
||||
}
|
||||
}
|
||||
for i := 0; i < len(state.ValidatorRegistry); i++ {
|
||||
if v.EffectiveBalance(state, uint64(i)) ==
|
||||
if v.EffectiveBalance(state, uint64(i)) >=
|
||||
params.BeaconConfig().MaxDeposit {
|
||||
state, err = v.ActivateValidator(state, uint64(i), true)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user