@@ -126,7 +126,7 @@ func checkStateConsistency(db ethdb.Database, root common.Hash) error {
126126
127127// Tests that an empty state is not scheduled for syncing.
128128func TestEmptyStateSync (t * testing.T ) {
129- if req := NewStateSync (types .EmptyRootHash , rawdb .NewMemoryDatabase (), trie .NewSyncBloom (1 , memorydb .New ())).Missing (1 ); len (req ) != 0 {
129+ if req := NewStateSync (types .EmptyRootHash , rawdb .NewMemoryDatabase (), trie .NewSyncBloom (1 , memorydb .New ()), nil ).Missing (1 ); len (req ) != 0 {
130130 t .Errorf ("content requested for empty state: %v" , req )
131131 }
132132}
@@ -146,7 +146,7 @@ func testIterativeStateSync(t *testing.T, count int, commit bool) {
146146 }
147147 // Create a destination state and sync with the scheduler
148148 dstDb := rawdb .NewMemoryDatabase ()
149- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
149+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
150150
151151 queue := append ([]common.Hash {}, sched .Missing (count )... )
152152 for len (queue ) > 0 {
@@ -185,7 +185,7 @@ func TestIterativeDelayedStateSync(t *testing.T) {
185185
186186 // Create a destination state and sync with the scheduler
187187 dstDb := rawdb .NewMemoryDatabase ()
188- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
188+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
189189
190190 queue := append ([]common.Hash {}, sched .Missing (0 )... )
191191 for len (queue ) > 0 {
@@ -229,7 +229,7 @@ func testIterativeRandomStateSync(t *testing.T, count int) {
229229
230230 // Create a destination state and sync with the scheduler
231231 dstDb := rawdb .NewMemoryDatabase ()
232- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
232+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
233233
234234 queue := make (map [common.Hash ]struct {})
235235 for _ , hash := range sched .Missing (count ) {
@@ -276,7 +276,7 @@ func TestIterativeRandomDelayedStateSync(t *testing.T) {
276276
277277 // Create a destination state and sync with the scheduler
278278 dstDb := rawdb .NewMemoryDatabase ()
279- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
279+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
280280
281281 queue := make (map [common.Hash ]struct {})
282282 for _ , hash := range sched .Missing (0 ) {
@@ -339,7 +339,7 @@ func TestIncompleteStateSync(t *testing.T) {
339339
340340 // Create a destination state and sync with the scheduler
341341 dstDb := rawdb .NewMemoryDatabase ()
342- sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ))
342+ sched := NewStateSync (srcRoot , dstDb , trie .NewSyncBloom (1 , dstDb ), nil )
343343
344344 added := []common.Hash {}
345345 queue := append ([]common.Hash {}, sched .Missing (1 )... )
0 commit comments