Commit bc24b7a9 authored by bailantaotao's avatar bailantaotao Committed by Felix Lange

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

Fixes #14586
parent 1e9f86b4
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment