Skip to content

Commit

Permalink
Nishant saving the day
Browse files Browse the repository at this point in the history
  • Loading branch information
potuz committed Mar 22, 2023
1 parent 5d1a9b9 commit e91c5fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions beacon-chain/blockchain/chain_info.go
Expand Up @@ -469,3 +469,8 @@ func (s *Service) Ancestor(ctx context.Context, root []byte, slot primitives.Slo

return ar[:], nil
}

// SetGenesisTime sets the genesis time of beacon chain.
func (s *Service) SetGenesisTime(t time.Time) {
s.genesisTime = t
}
6 changes: 0 additions & 6 deletions beacon-chain/blockchain/chain_info_forkchoice.go
Expand Up @@ -2,18 +2,12 @@ package blockchain

import (
"context"
"time"

"github.com/prysmaticlabs/prysm/v4/beacon-chain/state"
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
ethpbv1 "github.com/prysmaticlabs/prysm/v4/proto/eth/v1"
)

// SetGenesisTime sets the genesis time of beacon chain.
func (s *Service) SetGenesisTime(t time.Time) {
s.genesisTime = t
}

// CachedHeadRoot returns the corresponding value from Forkchoice
func (s *Service) CachedHeadRoot() [32]byte {
s.cfg.ForkChoiceStore.RLock()
Expand Down

0 comments on commit e91c5fd

Please sign in to comment.