Skip to content

Commit bd77cd1

Browse files
committed
[ETCM-521] Fix failing test
1 parent bb28ac4 commit bd77cd1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/it/scala/io/iohk/ethereum/sync/FastSyncItSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class FastSyncItSpec extends FlatSpecBase with Matchers with BeforeAndAfterAll {
230230

231231
_ <- peer1.connectToPeers(Set(peer2.node, peer3.node, peer4.node))
232232
_ <- peer1.startFastSync().delayExecution(50.milliseconds)
233-
_ <- peer2.importBlocksUntil(1800)(IdentityUpdate)
233+
_ <- peer2.importBlocksUntil(1200)(IdentityUpdate).startAndForget
234234
_ <- peer1.waitForFastSyncFinish()
235235
} yield {
236236
// Peer3 is blacklisted

src/it/scala/io/iohk/ethereum/sync/util/CommonFakePeer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ abstract class CommonFakePeer(peerName: String, fakePeerCustomConfig: FakePeerCu
224224
maxTargetDifference = 1,
225225
syncRetryInterval = 50.milliseconds,
226226
blacklistDuration = 100.seconds,
227-
fastSyncMaxBatchRetries = 0,
227+
fastSyncMaxBatchRetries = 2,
228228
fastSyncBlockValidationN = 200
229229
)
230230

src/main/scala/io/iohk/ethereum/blockchain/sync/fast/FastSync.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ class FastSync(
343343
context become waitingForBranchResolution
344344
branchResolver ! FastSyncBranchResolverActor.StartBranchResolver
345345
currentSkeletonState = None
346+
} else {
347+
syncState = syncState.enqueueHeaderRange(request)
346348
}
347349
}
348350

0 commit comments

Comments
 (0)