mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
use maps.Copy instead of manual map copy
This commit is contained in:
parent
701df4baad
commit
e2cd2b8f92
1 changed files with 1 additions and 3 deletions
|
|
@ -279,9 +279,7 @@ func (s *nodeSet) write(batch ethdb.Batch, clean *fastcache.Cache) int {
|
|||
if len(s.accountNodes) > 0 {
|
||||
nodes[common.Hash{}] = s.accountNodes
|
||||
}
|
||||
for owner, subset := range s.storageNodes {
|
||||
nodes[owner] = subset
|
||||
}
|
||||
maps.Copy(nodes, s.storageNodes)
|
||||
return writeNodes(batch, nodes, clean)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue