aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 23:19:09 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 23:19:09 +0800
commitf9d94c7462bbb3a0c463427baefc68555f853dee (patch)
tree2dda6d57c051076c1be2da1ae08c2e93d08b189f
parent11d90d9b2229917b00459ffbad4b1ff6e3c180a2 (diff)
downloadgo-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar.gz
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar.bz2
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar.lz
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar.xz
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.tar.zst
go-tangerine-f9d94c7462bbb3a0c463427baefc68555f853dee.zip
do not include BlockEqualTS as valid uncles
-rw-r--r--core/block_processor.go2
-rw-r--r--core/chain_manager.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index 97c885536..0a98f3e32 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -342,7 +342,7 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty
return UncleError(fmt.Sprintf("Uncle's parent unknown (%x)", uncle.ParentHash[0:4]))
}
- if err := sm.ValidateHeader(uncle, ancestorHeaders[uncle.ParentHash]); err != nil && err != BlockEqualTSErr {
+ if err := sm.ValidateHeader(uncle, ancestorHeaders[uncle.ParentHash]); err != nil {
return ValidationError(fmt.Sprintf("%v", err))
}
diff --git a/core/chain_manager.go b/core/chain_manager.go
index d97a94b06..bf5ba9b40 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -448,7 +448,8 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error {
}
if err == BlockEqualTSErr {
- queue[i] = ChainSideEvent{block, logs}
+ //queue[i] = ChainSideEvent{block, logs}
+ // XXX silently discard it?
continue
}