core/types: use Header.Hash for block hashes (#14587)

Fixes #14586
This commit is contained in:
bailantaotao 2017-06-07 18:06:25 +08:00 committed by Felix Lange
parent 1e9f86b49e
commit bc24b7a912
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ func (b *Block) Hash() common.Hash {
if hash := b.hash.Load(); hash != nil {
return hash.(common.Hash)
}
v := rlpHash(b.header)
v := b.header.Hash()
b.hash.Store(v)
return v
}