aboutsummaryrefslogtreecommitdiffstats
path: root/trie/trie.go
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2017-11-27 19:34:17 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-27 19:34:17 +0800
commit0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8 (patch)
treecfa15a1910da65ba8a051180a7f5cb546fc7eabf /trie/trie.go
parente4c9fd29a3907367b2b6b7cd32b0098350a94741 (diff)
downloadgo-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.gz
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.bz2
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.lz
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.xz
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.zst
go-tangerine-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.zip
trie: make fullnode children hash calculation concurrently (#15131)
* trie: make fullnode children hash calculation concurrently * trie: thread out only on topmost fullnode * trie: clean up full node children hash calculation * trie: minor code fixups
Diffstat (limited to 'trie/trie.go')
-rw-r--r--trie/trie.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go
index 7f69a3d1d..c211e7554 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -501,6 +501,5 @@ func (t *Trie) hashRoot(db DatabaseWriter) (node, node, error) {
return hashNode(emptyRoot.Bytes()), nil, nil
}
h := newHasher(t.cachegen, t.cachelimit)
- defer returnHasherToPool(h)
return h.hash(t.root, db, true)
}