diff --git a/core/types/bloom9.go b/core/types/bloom9.go index 1d57e8e4bc..a766b2e89a 100644 --- a/core/types/bloom9.go +++ b/core/types/bloom9.go @@ -141,11 +141,8 @@ func Bloom9(data []byte) []byte { // bloomValues returns the bytes (index-value pairs) to set for the given data func bloomValues(data []byte, hashbuf *[6]byte) (uint, byte, uint, byte, uint, byte) { - sha := hasherPool.Get().(crypto.KeccakState) - sha.Reset() - sha.Write(data) - sha.Read(hashbuf[:]) - hasherPool.Put(sha) + hash := crypto.Keccak256(data) + copy(hashbuf[:], hash[:6]) // The actual bits to flip v1 := byte(1 << (hashbuf[1] & 0x7)) v2 := byte(1 << (hashbuf[3] & 0x7))