|
|
@ -411,7 +411,6 @@ func (dl *downloadTester) dropPeer(id string) { |
|
|
|
type downloadTesterPeer struct { |
|
|
|
type downloadTesterPeer struct { |
|
|
|
dl *downloadTester |
|
|
|
dl *downloadTester |
|
|
|
id string |
|
|
|
id string |
|
|
|
lock sync.RWMutex |
|
|
|
|
|
|
|
chain *testChain |
|
|
|
chain *testChain |
|
|
|
missingStates map[common.Hash]bool // State entries that fast sync should not return
|
|
|
|
missingStates map[common.Hash]bool // State entries that fast sync should not return
|
|
|
|
} |
|
|
|
} |
|
|
@ -1601,7 +1600,7 @@ func TestRemoteHeaderRequestSpan(t *testing.T) { |
|
|
|
{15000, 13006, |
|
|
|
{15000, 13006, |
|
|
|
[]int{14823, 14839, 14855, 14871, 14887, 14903, 14919, 14935, 14951, 14967, 14983, 14999}, |
|
|
|
[]int{14823, 14839, 14855, 14871, 14887, 14903, 14919, 14935, 14951, 14967, 14983, 14999}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
//Remote is pretty close to us. We don't have to fetch as many
|
|
|
|
// Remote is pretty close to us. We don't have to fetch as many
|
|
|
|
{1200, 1150, |
|
|
|
{1200, 1150, |
|
|
|
[]int{1149, 1154, 1159, 1164, 1169, 1174, 1179, 1184, 1189, 1194, 1199}, |
|
|
|
[]int{1149, 1154, 1159, 1164, 1169, 1174, 1179, 1184, 1189, 1194, 1199}, |
|
|
|
}, |
|
|
|
}, |
|
|
|