Skip to content

Commit

Permalink
Cache genesis block root (#6069)
Browse files Browse the repository at this point in the history
* Don't forget to set genesis blockroot
* Typo
* Merge branch 'master' into set-genesis-blk-root
  • Loading branch information
terencechain committed Jun 1, 2020
1 parent 31ef6be commit db9e02d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon-chain/blockchain/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit db9e02d

Please sign in to comment.