Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan committed Aug 13, 2024
1 parent bc70292 commit 2795c10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ func (s *syncService) adaptAndSanityCheckBlock(ctx context.Context, header *spec
return
}

// todo comment
// once we verified p2p hash with received one above
// we need to overwrite it with old scheme hash
coreBlock.Hash, err = core.BlockHash(coreBlock)
if err != nil {
bodyCh <- blockBody{err: fmt.Errorf("failed to generate block hash: %w", err)}
Expand Down

0 comments on commit 2795c10

Please sign in to comment.