Cast to string for hashable type

pull/254/head
obscuren 10 years ago
parent 8c7b764d47
commit 351516c57c
  1. 2
      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]))
}

Loading…
Cancel
Save