mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 20:50:05 +00:00
Cache genesis block root (#6069)
* Don't forget to set genesis blockroot * Typo * Merge branch 'master' into set-genesis-blk-root
This commit is contained in:
parent
31ef6befde
commit
db9e02d7d1
@ -326,6 +326,7 @@ func (s *Service) saveGenesisData(ctx context.Context, genesisState *stateTrie.B
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not get genesis block root")
|
||||
}
|
||||
s.genesisRoot = genesisBlkRoot
|
||||
|
||||
if err := s.beaconDB.SaveBlock(ctx, genesisBlk); err != nil {
|
||||
return errors.Wrap(err, "could not save genesis block")
|
||||
|
Loading…
Reference in New Issue
Block a user