Skip to content

Commit

Permalink
Genesis is always canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
pinglamb committed Jan 19, 2021
1 parent 60110bd commit 229de91
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions beacon-chain/rpc/beacon/blocks.go
Expand Up @@ -164,15 +164,11 @@ func (bs *Server) ListBlocks(
if err != nil {
return nil, err
}
canonical, err := bs.CanonicalFetcher.IsCanonical(ctx, root)
if err != nil {
return nil, err
}
containers := []*ethpb.BeaconBlockContainer{
{
Block: genBlk,
BlockRoot: root[:],
Canonical: canonical,
Canonical: true,
},
}

Expand Down

0 comments on commit 229de91

Please sign in to comment.