eth/protocols/snap: use storage batch, not account batch in st task

parent 8681a253
...@@ -690,7 +690,7 @@ func (s *Syncer) loadSyncStatus() { ...@@ -690,7 +690,7 @@ func (s *Syncer) loadSyncStatus() {
s.storageBytes += common.StorageSize(len(key) + len(value)) s.storageBytes += common.StorageSize(len(key) + len(value))
}, },
} }
subtask.genTrie = trie.NewStackTrie(task.genBatch) subtask.genTrie = trie.NewStackTrie(subtask.genBatch)
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment