diff options
author | Felix Lange <fjl@twurst.com> | 2017-01-05 22:58:00 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2017-01-06 21:15:22 +0800 |
commit | d3b751e4d94f95f6cc89544852f2d5811e075665 (patch) | |
tree | 14e3417894593f9922551dcb24c3a9d3383f69a2 /trie/sync_test.go | |
parent | 7731061903bb992f7630ab389863951efb360258 (diff) | |
download | go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.gz go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.bz2 go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.lz go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.xz go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.tar.zst go-tangerine-d3b751e4d94f95f6cc89544852f2d5811e075665.zip |
trie: remove dependency on ethdb
This removes the core/types -> leveldb dependency.
Diffstat (limited to 'trie/sync_test.go')
-rw-r--r-- | trie/sync_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/trie/sync_test.go b/trie/sync_test.go index 5292fe5cb..5edbd0746 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -122,7 +122,7 @@ func testIterativeTrieSync(t *testing.T, batch int) { } results[i] = SyncResult{hash, data} } - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } queue = append(queue[:0], sched.Missing(batch)...) @@ -152,7 +152,7 @@ func TestIterativeDelayedTrieSync(t *testing.T) { } results[i] = SyncResult{hash, data} } - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } queue = append(queue[len(results):], sched.Missing(10000)...) @@ -190,7 +190,7 @@ func testIterativeRandomTrieSync(t *testing.T, batch int) { results = append(results, SyncResult{hash, data}) } // Feed the retrieved results back and queue new tasks - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } queue = make(map[common.Hash]struct{}) @@ -231,7 +231,7 @@ func TestIterativeRandomDelayedTrieSync(t *testing.T) { } } // Feed the retrieved results back and queue new tasks - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } for _, result := range results { @@ -272,7 +272,7 @@ func TestDuplicateAvoidanceTrieSync(t *testing.T) { results[i] = SyncResult{hash, data} } - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } queue = append(queue[:0], sched.Missing(0)...) @@ -304,7 +304,7 @@ func TestIncompleteTrieSync(t *testing.T) { results[i] = SyncResult{hash, data} } // Process each of the trie nodes - if _, index, err := sched.Process(results); err != nil { + if _, index, err := sched.Process(results, dstDb); err != nil { t.Fatalf("failed to process result #%d: %v", index, err) } for _, result := range results { |