From 5fe81a778284aa3eae34aa7d511e169401fe86cc Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 5 Jun 2018 13:43:24 +0200 Subject: [PATCH] trie: bump initial buffer cap in hasher --- trie/hasher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trie/hasher.go b/trie/hasher.go index cf91512cb8..47c6dd8f9d 100644 --- a/trie/hasher.go +++ b/trie/hasher.go @@ -56,7 +56,7 @@ func (b *sliceBuffer) Reset() { var hasherPool = sync.Pool{ New: func() interface{} { return &hasher{ - tmp: make(sliceBuffer, 0, 256), + tmp: make(sliceBuffer, 0, 550), // cap is as large as a full fullNode. sha: sha3.NewKeccak256().(keccakState), } },