core/types: rlpHash(b.header) should instead use header.Hash()

This commit is contained in:
Edwin 2017-06-06 18:11:34 +08:00
parent 1e9f86b49e
commit 680e8f4a24

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
}