e01c83690f
- 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 |
||
---|---|---|
.. | ||
AdvancedReOrgTests.swift | ||
BalanceTests.swift | ||
BlockDownloaderTests.swift | ||
DarksideSanityCheckTests.swift | ||
PendingTransactionUpdatesTest.swift | ||
ReOrgTests.swift | ||
RewindRescanTests.swift | ||
ShieldFundsTests.swift | ||
SychronizerDarksideTests.swift | ||
SynchronizerTests.swift | ||
TransactionEnhancementTests.swift | ||
Z2TReceiveTests.swift |