From dbc5c05fdb11e3acdeff7ee6acb1940c43588259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Miko=C5=82ajczyk?= Date: Tue, 18 Nov 2025 12:07:18 +0100 Subject: [PATCH] trie: fix leftover --- trie/stacktrie.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/stacktrie.go b/trie/stacktrie.go index 18fe1eea78..9d16b937e2 100644 --- a/trie/stacktrie.go +++ b/trie/stacktrie.go @@ -23,6 +23,7 @@ import ( "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core/types" + "github.com/ethereum/go-ethereum/crypto" ) var ( @@ -414,8 +415,7 @@ func (t *StackTrie) hash(st *stNode, path []byte) { } // Write the hash to the 'val'. We allocate a new val here to not mutate // input values. - st.val = bPool.getWithSize(32) - t.h.hashDataTo(st.val, blob) + st.val = crypto.Keccak256(blob) // Invoke the callback it's provided. Notably, the path and blob slices are // volatile, please deep-copy the slices in callback if the contents need