Cast to string for hashable type

This commit is contained in:
obscuren 2015-01-09 22:23:33 +01:00
parent 8c7b764d47
commit 351516c57c

View File

@ -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]))
}