aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorbailantaotao <Edwin@maicoin.com>2017-06-07 18:06:25 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-06-07 18:06:25 +0800
commitbc24b7a91218ab34f10a145467f6ef380a5d22aa (patch)
tree806b45bc20e2361175bb2d87474e8dd0800e3069 /core
parent1e9f86b49e523b9e0867abf1499de8fca4c7cd8d (diff)
downloaddexon-bc24b7a91218ab34f10a145467f6ef380a5d22aa.tar.gz
dexon-bc24b7a91218ab34f10a145467f6ef380a5d22aa.tar.zst
dexon-bc24b7a91218ab34f10a145467f6ef380a5d22aa.zip
core/types: use Header.Hash for block hashes (#14587)
Fixes #14586
Diffstat (limited to 'core')
-rw-r--r--core/types/block.go2
1 files changed, 1 insertions, 1 deletions
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
}