mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
pre alloc capacity for storageNodes
This commit is contained in:
parent
18a902799e
commit
8bb0ce07d6
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ func newNodeSet(nodes map[common.Hash]map[string]*trienode.Node) *nodeSet {
|
||||||
}
|
}
|
||||||
s := &nodeSet{
|
s := &nodeSet{
|
||||||
accountNodes: make(map[string]*trienode.Node),
|
accountNodes: make(map[string]*trienode.Node),
|
||||||
storageNodes: make(map[common.Hash]map[string]*trienode.Node),
|
storageNodes: make(map[common.Hash]map[string]*trienode.Node, len(nodes)),
|
||||||
}
|
}
|
||||||
for owner, subset := range nodes {
|
for owner, subset := range nodes {
|
||||||
if owner == (common.Hash{}) {
|
if owner == (common.Hash{}) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue