@@ -133,7 +133,7 @@ func checkStateConsistency(db ethdb.Database, root common.Hash) error {
133133
134134// Tests that an empty state is not scheduled for syncing.
135135func TestEmptyStateSync (t * testing.T ) {
136- sync := NewStateSync (types .EmptyRootHash , rawdb .NewMemoryDatabase (), trie .NewSyncBloom (1 , memorydb .New ()))
136+ sync := NewStateSync (types .EmptyRootHash , rawdb .NewMemoryDatabase (), trie .NewSyncBloom (1 , memorydb .New ()), nil )
137137 if nodes , paths , codes := sync .Missing (1 ); len (nodes ) != 0 || len (paths ) != 0 || len (codes ) != 0 {
138138 t .Errorf (" content requested for empty state: %v, %v, %v" , nodes , paths , codes )
139139 }
@@ -170,7 +170,7 @@ func testIterativeStateSync(t *testing.T, count int, commit bool, bypath bool) {
170170
171171 // Create a destination state and sync with the scheduler
172172 dstDb := rawdb .NewMemoryDatabase ()
173- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
173+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
174174
175175 nodes , paths , codes := sched .Missing (count )
176176 var (
@@ -249,7 +249,7 @@ func TestIterativeDelayedStateSync(t *testing.T) {
249249
250250 // Create a destination state and sync with the scheduler
251251 dstDb := rawdb .NewMemoryDatabase ()
252- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
252+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
253253
254254 nodes , _ , codes := sched .Missing (0 )
255255 queue := append (append ([]common.Hash {}, nodes ... ), codes ... )
@@ -297,7 +297,7 @@ func testIterativeRandomStateSync(t *testing.T, count int) {
297297
298298 // Create a destination state and sync with the scheduler
299299 dstDb := rawdb .NewMemoryDatabase ()
300- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
300+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
301301
302302 queue := make (map [common.Hash ]struct {})
303303 nodes , _ , codes := sched .Missing (count )
@@ -347,7 +347,7 @@ func TestIterativeRandomDelayedStateSync(t *testing.T) {
347347
348348 // Create a destination state and sync with the scheduler
349349 dstDb := rawdb .NewMemoryDatabase ()
350- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
350+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
351351
352352 queue := make (map [common.Hash ]struct {})
353353 nodes , _ , codes := sched .Missing (0 )
@@ -414,7 +414,7 @@ func TestIncompleteStateSync(t *testing.T) {
414414
415415 // Create a destination state and sync with the scheduler
416416 dstDb := rawdb .NewMemoryDatabase ()
417- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
417+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
418418
419419 var added []common.Hash
420420
0 commit comments