ZcashLightClientKit/Tests/DarksideTests
Michal Fousek e01c83690f [#646] SDK sync process resumes correctly
- Previously we had one range for each sync which was used for each
  phase of sync process. Newly there is separate range for each phase of
  the sync process.
- I added `InternalSyncProgress` utility. This utility tracks progress
  of some phases. And it is able to compute right ranges which should be
  used for syncing.
- Some unused download code from `CompactBlockProcessor` is removed.

Fix tests

Address review comments

- Rebase to master
- Update how range for `processBatchFinished()` is computed.
- Refactor `InternalSyncProgress`
- Add tests for `InternalSyncProgress`

Address review comments

Change how latest downloaded block is tracked

- Cache DB is no longer used to track which block was downloaded as
  latest. `InternalSyncProgress` is used to do that.
- Thanks to that #660 is fixed. And cache DB can be completely removed
  after sync process.
- Added sleep(1) to some darkside tests when latest block height is set.
  Otherwise lightwalletd in darkside mode doesn't have time to setup and
  tests are flaky.

Fix TransactionEnhancementTests.testBasicEnhancement test
2022-12-12 14:27:30 +01:00
..
AdvancedReOrgTests.swift [#646] SDK sync process resumes correctly 2022-12-12 14:27:30 +01:00
BalanceTests.swift [#646] SDK sync process resumes correctly 2022-12-12 14:27:30 +01:00
BlockDownloaderTests.swift [#593] Fix testSmallDownloadAsync test 2022-10-28 12:18:19 +02:00
DarksideSanityCheckTests.swift [#646] SDK sync process resumes correctly 2022-12-12 14:27:30 +01:00
PendingTransactionUpdatesTest.swift Cleanup warnings (#655) 2022-11-29 07:40:45 +01:00
ReOrgTests.swift [#646] SDK sync process resumes correctly 2022-12-12 14:27:30 +01:00
RewindRescanTests.swift [#585] Fix RewindRescanTests (#656) 2022-11-29 19:59:16 -03:00
ShieldFundsTests.swift Fix `testShieldFunds()` dataset loading issue. (#659) 2022-12-12 10:00:31 -03:00
SychronizerDarksideTests.swift Cleanup warnings (#655) 2022-11-29 07:40:45 +01:00
SynchronizerTests.swift Cleanup warnings (#655) 2022-11-29 07:40:45 +01:00
TransactionEnhancementTests.swift [#646] SDK sync process resumes correctly 2022-12-12 14:27:30 +01:00
Z2TReceiveTests.swift Cleanup warnings (#655) 2022-11-29 07:40:45 +01:00