|
|
@ -129,7 +129,7 @@ func TestLrSyncIter_FetchAndInsertBlocks(t *testing.T) { |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
bc: chain, |
|
|
|
bc: chain, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
d: &Downloader{}, |
|
|
|
d: &Downloader{bc: chain}, |
|
|
|
p: protocol, |
|
|
|
p: protocol, |
|
|
|
gbm: nil, |
|
|
|
gbm: nil, |
|
|
|
config: Config{ |
|
|
|
config: Config{ |
|
|
@ -162,7 +162,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrRequest(t *testing.T) { |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
bc: chain, |
|
|
|
bc: chain, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
d: &Downloader{}, |
|
|
|
d: &Downloader{bc: chain}, |
|
|
|
p: protocol, |
|
|
|
p: protocol, |
|
|
|
gbm: nil, |
|
|
|
gbm: nil, |
|
|
|
config: Config{ |
|
|
|
config: Config{ |
|
|
@ -195,7 +195,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_ErrInsert(t *testing.T) { |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
bc: chain, |
|
|
|
bc: chain, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
d: &Downloader{}, |
|
|
|
d: &Downloader{bc: chain}, |
|
|
|
p: protocol, |
|
|
|
p: protocol, |
|
|
|
gbm: nil, |
|
|
|
gbm: nil, |
|
|
|
config: Config{ |
|
|
|
config: Config{ |
|
|
@ -228,7 +228,7 @@ func TestLrSyncIter_FetchAndInsertBlocks_RandomErr(t *testing.T) { |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
lsi := &lrSyncIter{ |
|
|
|
bc: chain, |
|
|
|
bc: chain, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
ih: &testInsertHelper{chain}, |
|
|
|
d: &Downloader{}, |
|
|
|
d: &Downloader{bc: chain}, |
|
|
|
p: protocol, |
|
|
|
p: protocol, |
|
|
|
gbm: nil, |
|
|
|
gbm: nil, |
|
|
|
config: Config{ |
|
|
|
config: Config{ |
|
|
|