ZcashLightClientKit/Tests/DarksideTests
Francisco Gindre 3be694c920
[#444] Syncing Restarts to zero when the wallet is wiped and synced from zero in one go. (#445)
This commit changes the way walletBirthday is stored in the synchronizer and intinitializer. Wallets syncing from creation/restore would have a problem where the birthday stored in the Blocks Table would be the one corresponding to the chekpoint found a the time of syncing, but the compact block downloader would start downloading blocks from the height provided by the user when the wallet was restored. This would cause a `validationFailed` error at the height checkpoint.height + 1 and restart downloading from checkpoint.height and then resume correctly.

Darksidewalletd test setUp was changed re be able to reproduce the error since injection guaranteed correctness and it was not possible to reproduce the error with it since the wallet birthday height provided matched exactly with the checkpoint on disk and that's the only case that avoided this error.

Closes #444
2022-07-29 10:33:23 -03:00
..
AdvancedReOrgTests.swift [#444] Syncing Restarts to zero when the wallet is wiped and synced from zero in one go. (#445) 2022-07-29 10:33:23 -03:00
BalanceTests.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
BlockDownloaderTests.swift Update changelog.md and podspec version 2022-03-03 19:07:03 -03:00
DarksideSanityCheckTests.swift Remove dependecy on rust sources 2022-02-28 17:03:20 +00:00
NetworkUpgradeTests.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
PendingTransactionUpdatesTest.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
ReOrgTests.swift [#398] Make WalletBirthday an internal type (#414) 2022-07-12 16:36:12 -03:00
RewindRescanTests.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
ShieldFundsTests.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
SychronizerDarksideTests.swift Remove dependecy on rust sources 2022-02-28 17:03:20 +00:00
TransactionEnhancementTests.swift [#398] Make WalletBirthday an internal type (#414) 2022-07-12 16:36:12 -03:00
Z2TReceiveTests.swift [#381] Move Zatoshi and Amount Types to the SDK (#396) 2022-06-22 16:45:37 -03:00
ZcashLightClientKitTests.swift Remove dependecy on rust sources 2022-02-28 17:03:20 +00:00