Skip to content

Commit

Permalink
Add network check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Jan 22, 2025
1 parent a5338d2 commit da345c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (s *Service) adaptAndSanityCheckBlock(ctx context.Context, header *gen.Sign
return
}

if blockVer.LessThan(core.Ver0_13_2) {
if blockVer.LessThan(core.Ver0_13_2) && s.network.L2ChainID == "SN_SEPOLIA" {
expectedHash := hashstorage.SepoliaBlockHashesMap[coreBlock.Number]
post0132Hash, _, err := core.Post0132Hash(coreBlock, stateDiff)
if err != nil {
Expand Down

0 comments on commit da345c1

Please sign in to comment.