aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-18 16:13:50 +0800
committerobscuren <geffobscura@gmail.com>2015-05-18 16:13:50 +0800
commite323f0e83120edb759dfa1e99325eff13e975b3b (patch)
treeaba318c95c8f62c01ece10ad4271d1b7684c924f /core
parent280b7f23af512d12069e378bf2d00ec6f32a9a06 (diff)
downloaddexon-e323f0e83120edb759dfa1e99325eff13e975b3b.tar.gz
dexon-e323f0e83120edb759dfa1e99325eff13e975b3b.tar.zst
dexon-e323f0e83120edb759dfa1e99325eff13e975b3b.zip
core: tmp diagnostic logs
Diffstat (limited to 'core')
-rw-r--r--core/block_processor.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index cae618b39..adba264c1 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])
}