public void Finished_fast_sync_but_not_state_sync_and_lesser_peers_are_known_in_fast_blocks(FastBlocksState fastBlocksState) { Scenario.GoesLikeThis(_needToWaitForHeaders) .IfThisNodeJustFinishedFastBlocksAndFastSync(fastBlocksState) .AndPeersAreOnlyUsefulForFastBlocks() .WhenFastSyncWithFastBlocksIsConfigured() .TheSyncModeShouldBe(fastBlocksState.GetSyncMode()); }
public void Just_after_finishing_state_sync_and_fast_blocks(FastBlocksState fastBlocksState) { Scenario.GoesLikeThis(_needToWaitForHeaders) .IfThisNodeJustFinishedStateSyncAndFastBlocks(fastBlocksState) .WhenFastSyncWithFastBlocksIsConfigured() .AndGoodPeersAreKnown() .TheSyncModeShouldBe(SyncMode.Full | fastBlocksState.GetSyncMode(true)); }
public void When_peers_move_slightly_forward_when_state_syncing(FastBlocksState fastBlocksState) { Scenario.GoesLikeThis(_needToWaitForHeaders) .IfThisNodeJustFinishedFastBlocksAndFastSync(fastBlocksState) .AndPeersMovedSlightlyForward() .WhenFastSyncWithFastBlocksIsConfigured() .TheSyncModeShouldBe(GetExpectationsIfNeedToWaitForHeaders(SyncMode.StateNodes | SyncMode.FastSync | fastBlocksState.GetSyncMode())); }
public void When_just_started_full_sync_with_fast_blocks(FastBlocksState fastBlocksState) { Scenario.GoesLikeThis(_needToWaitForHeaders) .IfThisNodeJustStartedFullSyncProcessing(fastBlocksState) .AndGoodPeersAreKnown() .WhenFastSyncWithFastBlocksIsConfigured() .TheSyncModeShouldBe(GetExpectationsIfNeedToWaitForHeaders(SyncMode.Full | fastBlocksState.GetSyncMode(true))); }
public void Just_after_finishing_state_sync_but_not_fast_blocks(FastBlocksState fastBlocksState) { Scenario.GoesLikeThis(_needToWaitForHeaders) .WhenInBeaconSyncMode(_mode) .IfThisNodeFinishedStateSyncButNotFastBlocks(fastBlocksState) .WhenFastSyncWithFastBlocksIsConfigured() .AndGoodPeersAreKnown() .TheSyncModeShouldBe(GetExpectationsIfNeedToWaitForHeaders(GetBeaconSyncExpectations(SyncMode.Full | fastBlocksState.GetSyncMode(true)))); }