diff options
author | gary rong <garyrong0905@gmail.com> | 2017-11-27 19:34:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-27 19:34:17 +0800 |
commit | 0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8 (patch) | |
tree | cfa15a1910da65ba8a051180a7f5cb546fc7eabf /trie/trie.go | |
parent | e4c9fd29a3907367b2b6b7cd32b0098350a94741 (diff) | |
download | dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.gz dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.bz2 dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.lz dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.xz dexon-0f7fbb85d6e939510a3e3bb6493a9a332ddfd8e8.tar.zst dexon-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.go | 1 |
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) } |