[release/1.4.6] eth/downloader: stream partial skeleton filling to processor

(cherry picked from commit e86619e75d)
This commit is contained in:
Péter Szilágyi
2016-04-19 12:27:37 +03:00
parent 7df36e5ec1
commit 8ebbd9b7c7
3 changed files with 55 additions and 19 deletions

View File

@@ -1258,6 +1258,7 @@ func testInvalidHeaderRollback(t *testing.T, protocol int, mode SyncMode) {
// rolled back, and also the pivot point being reverted to a non-block status.
tester.newPeer("block-attack", protocol, hashes, headers, blocks, receipts)
missing = 3*fsHeaderSafetyNet + MaxHeaderFetch + 1
delete(tester.peerHeaders["fast-attack"], hashes[len(hashes)-missing]) // Make sure the fast-attacker doesn't fill in
delete(tester.peerHeaders["block-attack"], hashes[len(hashes)-missing])
if err := tester.sync("block-attack", nil, mode); err == nil {