From 680e8f4a24c56fcb183526e18bdb9360e5f79397 Mon Sep 17 00:00:00 2001 From: Edwin Date: Tue, 6 Jun 2017 18:11:34 +0800 Subject: [PATCH] core/types: rlpHash(b.header) should instead use header.Hash() --- core/types/block.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/types/block.go b/core/types/block.go index 8ca3d0e896..1d00d9f930 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 }