diff options
author | Nick Johnson <arachnid@notdot.net> | 2016-11-18 19:01:54 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-11-18 19:01:54 +0800 |
commit | c8695209f609375ceb06e8f4151dc9093f38cac5 (patch) | |
tree | a5afc0989d2fd9386e917f4dfadfef397b829490 /core/block_validator.go | |
parent | 9b95112a2dba73b5fe674ef41c2509eadca80ac4 (diff) | |
download | go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar.gz go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar.bz2 go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar.lz go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar.xz go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.tar.zst go-tangerine-c8695209f609375ceb06e8f4151dc9093f38cac5.zip |
core: Don't perform EIP150 hash check on uncles (#3303)v1.5.2
Diffstat (limited to 'core/block_validator.go')
-rw-r--r-- | core/block_validator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/block_validator.go b/core/block_validator.go index 388fb7b3c..3353683c0 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -251,7 +251,7 @@ func ValidateHeader(config *params.ChainConfig, pow pow.PoW, header *types.Heade if err := ValidateDAOHeaderExtraData(config, header); err != nil { return err } - if config.EIP150Block != nil && config.EIP150Block.Cmp(header.Number) == 0 { + if !uncle && config.EIP150Block != nil && config.EIP150Block.Cmp(header.Number) == 0 { if config.EIP150Hash != (common.Hash{}) && config.EIP150Hash != header.Hash() { return ValidationError("Homestead gas reprice fork hash mismatch: have 0x%x, want 0x%x", header.Hash(), config.EIP150Hash) } |