@@ -122,7 +122,7 @@ func testIterativeTrieSync(t *testing.T, batch int) {
122122 }
123123 results [i ] = SyncResult {hash , data }
124124 }
125- if _ , index , err := sched .Process (results ); err != nil {
125+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
126126 t .Fatalf ("failed to process result #%d: %v" , index , err )
127127 }
128128 queue = append (queue [:0 ], sched .Missing (batch )... )
@@ -152,7 +152,7 @@ func TestIterativeDelayedTrieSync(t *testing.T) {
152152 }
153153 results [i ] = SyncResult {hash , data }
154154 }
155- if _ , index , err := sched .Process (results ); err != nil {
155+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
156156 t .Fatalf ("failed to process result #%d: %v" , index , err )
157157 }
158158 queue = append (queue [len (results ):], sched .Missing (10000 )... )
@@ -190,7 +190,7 @@ func testIterativeRandomTrieSync(t *testing.T, batch int) {
190190 results = append (results , SyncResult {hash , data })
191191 }
192192 // Feed the retrieved results back and queue new tasks
193- if _ , index , err := sched .Process (results ); err != nil {
193+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
194194 t .Fatalf ("failed to process result #%d: %v" , index , err )
195195 }
196196 queue = make (map [common.Hash ]struct {})
@@ -231,7 +231,7 @@ func TestIterativeRandomDelayedTrieSync(t *testing.T) {
231231 }
232232 }
233233 // Feed the retrieved results back and queue new tasks
234- if _ , index , err := sched .Process (results ); err != nil {
234+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
235235 t .Fatalf ("failed to process result #%d: %v" , index , err )
236236 }
237237 for _ , result := range results {
@@ -272,7 +272,7 @@ func TestDuplicateAvoidanceTrieSync(t *testing.T) {
272272
273273 results [i ] = SyncResult {hash , data }
274274 }
275- if _ , index , err := sched .Process (results ); err != nil {
275+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
276276 t .Fatalf ("failed to process result #%d: %v" , index , err )
277277 }
278278 queue = append (queue [:0 ], sched .Missing (0 )... )
@@ -304,7 +304,7 @@ func TestIncompleteTrieSync(t *testing.T) {
304304 results [i ] = SyncResult {hash , data }
305305 }
306306 // Process each of the trie nodes
307- if _ , index , err := sched .Process (results ); err != nil {
307+ if _ , index , err := sched .Process (results , dstDb ); err != nil {
308308 t .Fatalf ("failed to process result #%d: %v" , index , err )
309309 }
310310 for _ , result := range results {
0 commit comments