Browse Source

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

Péter Szilágyi 4 năm trước cách đây
mục cha
commit
52b5d2d869
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
 					}
 				}
 			}