trie: bump initial buffer cap in hasher

This commit is contained in:
Felix Lange 2018-06-05 13:43:24 +02:00
parent dfb88ae4ad
commit 5fe81a7782

View file

@ -56,7 +56,7 @@ func (b *sliceBuffer) Reset() {
var hasherPool = sync.Pool{ var hasherPool = sync.Pool{
New: func() interface{} { New: func() interface{} {
return &hasher{ return &hasher{
tmp: make(sliceBuffer, 0, 256), tmp: make(sliceBuffer, 0, 550), // cap is as large as a full fullNode.
sha: sha3.NewKeccak256().(keccakState), sha: sha3.NewKeccak256().(keccakState),
} }
}, },