aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-10 05:23:33 +0800
committerobscuren <geffobscura@gmail.com>2015-01-10 05:23:33 +0800
commit351516c57cb5872e849ffca643526da5801564f2 (patch)
tree2933ee28acdba612e1eaa41e1eadf9682bf23f0f /core
parent8c7b764d47ce55ba6abe437ae8232cc537c4e0d9 (diff)
downloaddexon-351516c57cb5872e849ffca643526da5801564f2.tar
dexon-351516c57cb5872e849ffca643526da5801564f2.tar.gz
dexon-351516c57cb5872e849ffca643526da5801564f2.tar.bz2
dexon-351516c57cb5872e849ffca643526da5801564f2.tar.lz
dexon-351516c57cb5872e849ffca643526da5801564f2.tar.xz
dexon-351516c57cb5872e849ffca643526da5801564f2.tar.zst
dexon-351516c57cb5872e849ffca643526da5801564f2.zip
Cast to string for hashable type
Diffstat (limited to 'core')
-rw-r--r--core/block_processor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/block_processor.go b/core/block_processor.go
index 3ccf2d03c..a9f948a46 100644
--- a/core/block_processor.go
+++ b/core/block_processor.go
@@ -308,7 +308,7 @@ func (sm *BlockProcessor) AccumelateRewards(statedb *state.StateDB, block, paren
}
uncles.Add(string(uncle.Hash()))
- if !ancestors.Has(uncle.ParentHash) {
+ if !ancestors.Has(string(uncle.ParentHash)) {
return UncleError(fmt.Sprintf("Uncle's parent unknown (%x)", uncle.ParentHash[0:4]))
}