aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-06-02 04:43:05 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-06-02 04:43:05 +0800
commit55bf5051adea17b5981d4f567d9e9dc6865f7af7 (patch)
treeed62178fe9a60f9af7c8323acb97ef12985a1e05 /core
parent5a692ba4f6097b34c7c1ae85b6e06748ae2e06c7 (diff)
downloadgo-tangerine-55bf5051adea17b5981d4f567d9e9dc6865f7af7.tar.gz
go-tangerine-55bf5051adea17b5981d4f567d9e9dc6865f7af7.tar.zst
go-tangerine-55bf5051adea17b5981d4f567d9e9dc6865f7af7.zip
Unsupport bruncles
Diffstat (limited to 'core')
-rw-r--r--core/block_processor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index ca205ee86..a3ad383d0 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -364,8 +364,8 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty
return UncleError("uncle[%d](%x) is ancestor", i, hash[:4])
}
- if !ancestors.Has(uncle.ParentHash) {
- return UncleError("uncle[%d](%x)'s parent unknown (%x)", i, hash[:4], uncle.ParentHash[0:4])
+ if !ancestors.Has(uncle.ParentHash) || uncle.ParentHash == parent.Hash() {
+ return UncleError("uncle[%d](%x)'s parent is not ancestor (%x)", i, hash[:4], uncle.ParentHash[0:4])
}
if err := sm.ValidateHeader(uncle, ancestorHeaders[uncle.ParentHash], true); err != nil {