diff --git a/p2p/sync.go b/p2p/sync.go index cdc2a14f06..f4b7d21279 100644 --- a/p2p/sync.go +++ b/p2p/sync.go @@ -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)}