mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 12:06:40 +00:00
core: tmp diagnostic logs
This commit is contained in:
parent
280b7f23af
commit
e323f0e831
1 changed files with 7 additions and 0 deletions
|
|
@ -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])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue