From e323f0e83120edb759dfa1e99325eff13e975b3b Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 18 May 2015 10:13:50 +0200 Subject: [PATCH] core: tmp diagnostic logs --- core/block_processor.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/block_processor.go b/core/block_processor.go index cae618b390..adba264c13 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -351,6 +351,13 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty uncles.Add(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]) }