Skip to content

Commit

Permalink
deepsource fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
Redidacove committed Aug 30, 2024
1 parent cd09e57 commit a77e32b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/blockchain/head.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func (s *Service) headStateReadOnly(ctx context.Context) state.ReadOnlyBeaconSta

// This returns the genesis validators root of the head state.
// This is a lock free version.
func (s *Service) headGenesisValidatorsRoot() [32]byte {
func (*Service) headGenesisValidatorsRoot() [32]byte {
return params.BeaconConfig().GenesisValidatorsRoot
}

Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/p2p/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ func (s *Service) awaitStateInitialized() {
}
s.genesisTime = clock.GenesisTime()
gvr := params.BeaconConfig().GenesisValidatorsRoot[:]
s.genesisValidatorsRoot = gvr[:]
s.genesisValidatorsRoot = gvr
_, err = s.currentForkDigest() // initialize fork digest cache
if err != nil {
log.WithError(err).Error("Could not initialize fork digest")
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/prysm/v1alpha1/node/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (ns *Server) GetGenesis(ctx context.Context, _ *empty.Empty) (*ethpb.Genesi
return &ethpb.Genesis{
GenesisTime: gt,
DepositContractAddress: contractAddr,
GenesisValidatorsRoot: genValRoot[:],
GenesisValidatorsRoot: genValRoot,
}, nil
}

Expand Down

0 comments on commit a77e32b

Please sign in to comment.