Explorar o código

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

Péter Szilágyi %!s(int64=4) %!d(string=hai) anos
pai
achega
52b5d2d869
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      eth/protocols/snap/sync.go

+ 1 - 1
eth/protocols/snap/sync.go

@@ -690,7 +690,7 @@ func (s *Syncer) loadSyncStatus() {
 								s.storageBytes += common.StorageSize(len(key) + len(value))
 							},
 						}
-						subtask.genTrie = trie.NewStackTrie(task.genBatch)
+						subtask.genTrie = trie.NewStackTrie(subtask.genBatch)
 					}
 				}
 			}