Skip to content

Commit

Permalink
nishant suggesstion applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Redidacove committed Sep 4, 2024
1 parent 43660f6 commit 7de1825
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon-chain/p2p/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ func (s *Service) awaitStateInitialized() {
log.WithError(err).Fatal("failed to receive initial genesis data")
}
s.genesisTime = clock.GenesisTime()
s.genesisValidatorsRoot = params.BeaconConfig().GenesisValidatorsRoot[:]
gvr := params.BeaconConfig().GenesisValidatorsRoot
s.genesisValidatorsRoot = gvr[:]
_, err = s.currentForkDigest() // initialize fork digest cache
if err != nil {
log.WithError(err).Error("Could not initialize fork digest")
Expand Down

0 comments on commit 7de1825

Please sign in to comment.