Skip to content

Commit c869520

Browse files
Arachnidobscuren
authored andcommitted
core: Don't perform EIP150 hash check on uncles (#3303)
1 parent 9b95112 commit c869520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/block_validator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func ValidateHeader(config *params.ChainConfig, pow pow.PoW, header *types.Heade
251251
if err := ValidateDAOHeaderExtraData(config, header); err != nil {
252252
return err
253253
}
254-
if config.EIP150Block != nil && config.EIP150Block.Cmp(header.Number) == 0 {
254+
if !uncle && config.EIP150Block != nil && config.EIP150Block.Cmp(header.Number) == 0 {
255255
if config.EIP150Hash != (common.Hash{}) && config.EIP150Hash != header.Hash() {
256256
return ValidationError("Homestead gas reprice fork hash mismatch: have 0x%x, want 0x%x", header.Hash(), config.EIP150Hash)
257257
}

0 commit comments

Comments
 (0)