Commit e323f0e8 authored by obscuren's avatar obscuren

core: tmp diagnostic logs

parent 280b7f23
...@@ -351,6 +351,13 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty ...@@ -351,6 +351,13 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty
uncles.Add(hash) uncles.Add(hash)
if ancestors.Has(hash) { if ancestors.Has(hash) {
var branch string
ancestors.Each(func(item interface{}) bool {
branch += fmt.Sprintf(" O - %x\n |\n", item.(common.Hash))
})
branch += fmt.Sprintf(" O - %x\n |\n", block.Hash())
glog.Infoln(branch)
return UncleError("uncle[%d](%x) is ancestor", i, hash[:4]) return UncleError("uncle[%d](%x) is ancestor", i, hash[:4])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment