aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_processor.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-15 06:40:07 +0800
committerobscuren <geffobscura@gmail.com>2015-05-15 06:40:07 +0800
commit580bae0a86ab39662dc49efe008424518469cafd (patch)
treea87e6ff72fcef34595274277858f5c2bfe84587e /core/block_processor.go
parentb19bf3ec7817b8288389be559ef437b31e678c16 (diff)
downloadgo-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar.gz
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar.bz2
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar.lz
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar.xz
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.tar.zst
go-tangerine-580bae0a86ab39662dc49efe008424518469cafd.zip
core: improved uncle messages
Diffstat (limited to 'core/block_processor.go')
-rw-r--r--core/block_processor.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index 059c442cc..5199e4b4d 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -347,17 +347,17 @@ func (sm *BlockProcessor) VerifyUncles(statedb *state.StateDB, block, parent *ty
for i, uncle := range block.Uncles() {
if uncles.Has(uncle.Hash()) {
// Error not unique
- return UncleError("Uncle not unique")
+ return UncleError("uncle[%d] not unique", i)
}
uncles.Add(uncle.Hash())
if ancestors.Has(uncle.Hash()) {
- return UncleError("Uncle is ancestor")
+ return UncleError("uncle[%d] is ancestor", i)
}
if !ancestors.Has(uncle.ParentHash) {
- return UncleError(fmt.Sprintf("Uncle's parent unknown (%x)", uncle.ParentHash[0:4]))
+ return UncleError("uncle[%d]'s parent unknown (%x)", i, uncle.ParentHash[0:4])
}
if err := sm.ValidateHeader(uncle, ancestorHeaders[uncle.ParentHash]); err != nil {