From bc24b7a91218ab34f10a145467f6ef380a5d22aa Mon Sep 17 00:00:00 2001 From: bailantaotao Date: Wed, 7 Jun 2017 18:06:25 +0800 Subject: core/types: use Header.Hash for block hashes (#14587) Fixes #14586 --- core/types/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/types/block.go b/core/types/block.go index 8ca3d0e89..1d00d9f93 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -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 } -- cgit