提交 bc24b7a9 编写于 作者: B bailantaotao 提交者: Felix Lange

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

Fixes #14586
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册