Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rkapka committed Jan 24, 2024
1 parent 77b311f commit 38579c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions beacon-chain/db/kv/finalized_block_roots.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func (s *Store) updateFinalizedBlockRoots(ctx context.Context, tx *bolt.Tx, chec
for i, r := range finalized {
var container *ethpb.FinalizedBlockRootContainer
if i == len(finalized)-1 {
// We don't know the finalized child of the new finalized checkpoint.
// It will be filled out in the next function call.
container = &ethpb.FinalizedBlockRootContainer{}
} else {
container = &ethpb.FinalizedBlockRootContainer{
Expand Down

0 comments on commit 38579c4

Please sign in to comment.