@@ -183,7 +183,7 @@ func testIterativeSync(t *testing.T, count int, bypath bool, scheme string) {
183
183
syncPath : NewSyncPath ([]byte (paths [i ])),
184
184
})
185
185
}
186
- reader , err := srcDb .Reader (srcTrie .Hash ())
186
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
187
187
if err != nil {
188
188
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
189
189
}
@@ -258,7 +258,7 @@ func testIterativeDelayedSync(t *testing.T, scheme string) {
258
258
syncPath : NewSyncPath ([]byte (paths [i ])),
259
259
})
260
260
}
261
- reader , err := srcDb .Reader (srcTrie .Hash ())
261
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
262
262
if err != nil {
263
263
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
264
264
}
@@ -327,7 +327,7 @@ func testIterativeRandomSync(t *testing.T, count int, scheme string) {
327
327
syncPath : NewSyncPath ([]byte (paths [i ])),
328
328
}
329
329
}
330
- reader , err := srcDb .Reader (srcTrie .Hash ())
330
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
331
331
if err != nil {
332
332
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
333
333
}
@@ -394,7 +394,7 @@ func testIterativeRandomDelayedSync(t *testing.T, scheme string) {
394
394
syncPath : NewSyncPath ([]byte (path )),
395
395
}
396
396
}
397
- reader , err := srcDb .Reader (srcTrie .Hash ())
397
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
398
398
if err != nil {
399
399
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
400
400
}
@@ -466,7 +466,7 @@ func testDuplicateAvoidanceSync(t *testing.T, scheme string) {
466
466
syncPath : NewSyncPath ([]byte (paths [i ])),
467
467
})
468
468
}
469
- reader , err := srcDb .Reader (srcTrie .Hash ())
469
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
470
470
if err != nil {
471
471
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
472
472
}
@@ -542,7 +542,7 @@ func testIncompleteSync(t *testing.T, scheme string) {
542
542
syncPath : NewSyncPath ([]byte (paths [i ])),
543
543
})
544
544
}
545
- reader , err := srcDb .Reader (srcTrie .Hash ())
545
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
546
546
if err != nil {
547
547
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
548
548
}
@@ -634,7 +634,7 @@ func testSyncOrdering(t *testing.T, scheme string) {
634
634
})
635
635
reqs = append (reqs , NewSyncPath ([]byte (paths [i ])))
636
636
}
637
- reader , err := srcDb .Reader (srcTrie .Hash ())
637
+ reader , err := srcDb .NodeReader (srcTrie .Hash ())
638
638
if err != nil {
639
639
t .Fatalf ("State is not available %x" , srcTrie .Hash ())
640
640
}
@@ -704,7 +704,7 @@ func syncWithHookWriter(t *testing.T, root common.Hash, db ethdb.Database, srcDb
704
704
syncPath : NewSyncPath ([]byte (paths [i ])),
705
705
})
706
706
}
707
- reader , err := srcDb .Reader (root )
707
+ reader , err := srcDb .NodeReader (root )
708
708
if err != nil {
709
709
t .Fatalf ("State is not available %x" , root )
710
710
}
0 commit comments