Commit Graph

702 Commits

Author SHA1 Message Date
Francisco Gindre ee9bf85557 [WIP] - [#616] move notification off the main queue into their own queue
Use combine current value subject instead to maintain retrocompatibility
with clients relying on status variable.

Move all the notifications to the dedicated queue.
2022-11-10 21:04:12 -03:00
Francisco Gindre 380425e4e0 [#616] Download Stream generates too many updates on the main thread
Closes #616
2022-11-09 20:58:22 -03:00
Francisco Gindre eb9696b186
Merge pull request #499 from zcash/feature/zip-316-and-latest-upstream
Implement ZIP 316 (Unified Addresses) and update to the latest librustzcash.
2022-11-09 14:44:21 -03:00
Francisco Gindre 3efe956c08 Update CHANGELOG.md to summarize changes on 0.17.0-beta 2022-11-08 14:06:39 -03:00
Francisco Gindre 99835bfba7 Add additional notes on structured concurrency 2022-11-08 13:51:40 -03:00
Francisco Gindre 8f83a558e4
Merge pull request #611 from zcash/release/0.17.0-beta.rc1
Release/0.17.0 beta.rc1
2022-11-07 16:40:37 -03:00
Francisco Gindre 9607f0cefa - [#610] Release 0.17.0-beta.rc1 2022-11-07 14:21:22 -03:00
Francisco Gindre 3a485167cd 0.17.0-beta.5 2022-11-04 18:30:43 -03:00
Francisco Gindre c46374cff6
Merge pull request #609 from zcash/release/0.17.0-alpha.4
0.17.0-alpha.4
2022-11-04 17:32:08 -03:00
Francisco Gindre bb015008cf 0.17.0-alpha.4 2022-11-04 15:28:13 -03:00
Francisco Gindre b745cb807a
Merge pull request #607 from Chlup/fix_sample_compilation
Fix Sample SDK app compilation
2022-11-03 15:16:32 -03:00
Michal Fousek 00946f6a70 Fix Sample SDK app compilation 2022-11-03 17:24:52 +01:00
Francisco Gindre d1af6a7b76
Merge pull request #606 from Chlup/fix_sample_package_resolved
Fix Package.resolved file for Sample SDK app
2022-11-03 13:16:32 -03:00
Michal Fousek d3291a6664 Fix Package.resolved file for Sample SDK app 2022-11-03 17:12:09 +01:00
Francisco Gindre d4a2a04d2b
Merge pull request #603 from zcash/release/0.17.0-alpha.3
Release/0.17.0 alpha.3
2022-11-02 13:24:20 -03:00
Francisco Gindre 59dc56c9b4 Merge branch 'feature/zip-316-and-latest-upstream' into release/0.17.0-alpha.3 2022-11-01 15:09:39 -03:00
Francisco Gindre b413e87bff Release 0.17.0-alpha.3 2022-11-01 14:01:53 -03:00
Francisco Gindre 373e609470 Add MIGRATING.md and fix capitalization of changelog.md to CHANGELOG.md 2022-11-01 14:01:26 -03:00
Francisco Gindre a12666e932 [#602] Improve error logging for InitializerError and RustWeldingError 2022-11-01 13:57:42 -03:00
Francisco Gindre 80138cd9bc
Merge pull request #601 from zcash/merge-master
Merge master
2022-11-01 08:00:15 -03:00
Francisco Gindre 08e6738cf7 Fix compiler error 2022-11-01 07:47:31 -03:00
Francisco Gindre c0f1aa959a Fix SendViewController `viewDidLoad` 2022-10-31 20:45:58 -03:00
Francisco Gindre a0d02c4d57 PR Suggestions
`XCAsyncTestCase` does not work as intended but `wait {}` does what
we need.

restored `needsToStartScanningWhenStopped` as a Bool var on actor

fixed Enhancement test
2022-10-31 20:17:21 -03:00
Francisco Gindre cc92893450
Merge pull request #600 from zcash/release/0.17.0-alpha.2
Release 0.17.0-alpha.2
2022-10-31 16:03:12 -03:00
Francisco Gindre 1c8e06742a Fix Tests than need to call the async TestCoordinator build function 2022-10-31 10:17:48 -03:00
Francisco Gindre 01d85f5748 Fix compiler errors 2022-10-31 09:57:10 -03:00
Francisco Gindre dbd4b8934c Merge branch 'master' into merge-master 2022-10-31 09:34:38 -03:00
Francisco Gindre 7f39d4864d Release 0.17.0-alpha.2 2022-10-31 08:37:11 -03:00
Francisco Gindre 201c777de0
Merge pull request #599 from Chlup/579_database_locked
[#579] Fix database lock
2022-10-31 08:29:33 -03:00
Michal Fousek 571166cc8a [#579] Fix database lock
Closes #579

This is what happens when database was locked:
- App is syncing.
- While rustBackend.scanBlocks(…) is in progress app goes to background. Background task is launched and
  ECC works for some time in background.
- When background task is finished synchronizer.stop() is called.
- Inside CompactBlockProcessor.stop()is called. In this method cancelableTask is canceled and state is
  set to stopped no matter what. And this is the problem. Because even when canceled is called rust
  scanning isn’t canceled. But state doesn’t care about it. And next time when app is launched new
  synchronisation is started and now you have processing code running in two threads causing DB lock.

So I moved setting state to stopped to processNewBlocks method. It's set
after the work is canceled and really stopped. When doing this there is
still one problem. When app goes to foreground new sync is not started
and current one is just stopped.
    So I added new variable and condition. And when this variable is set
to true new syncing process starts when the previous one is canceled.
This should cover all the problems.
2022-10-31 09:57:32 +01:00
Francisco Gindre 7fd64f3a2a
Merge pull request #598 from zcash/release/0.16.13-beta
[#597] SDK does not build with SQLite 0.14
2022-10-28 14:42:24 -03:00
Francisco Gindre ce641280fb
Merge branch 'master' into release/0.16.13-beta 2022-10-28 14:27:30 -03:00
Francisco Gindre 245f2324b5 [#597] SDK does not build with SQLite 0.14 2022-10-28 14:20:52 -03:00
Francisco Gindre d0a63eeb99
Merge pull request #596 from LukasKorba/595_Update_Travis_to_use_Xcode_14
[#595] Update Travis to use Xcode 14
2022-10-28 12:56:31 -03:00
Lukas Korba 085257881d
[#595] Update Travis to use Xcode 14
- yml file updated to the latest Xcode
2022-10-28 15:08:17 +02:00
Francisco Gindre 7ab30b0d0c
Merge pull request #594 from Chlup/593_fix_testSmallDownloadAsync_test
[#593] Fix testSmallDownloadAsync test
2022-10-28 09:16:43 -03:00
Francisco Gindre b41f03c3bf
Merge pull request #592 from zcash/fix_tests
Fix various tests and deleted some that are not useful anymore
2022-10-28 09:16:08 -03:00
Michal Fousek 02ee0a54ea [#593] Fix testSmallDownloadAsync test
- Test was failling with:
generalError(message: "block not found in cache, should always be in cache in darkside mode")
- There was no wait so lightwalletd in darkside mode didn't have enough time to accept mocked state.
2022-10-28 12:18:19 +02:00
Francisco Gindre b5d659e8a8 Fix various tests and deleted some that are not useful anymore
Closes #588
Closes #584
Closes #589
Closes #591
2022-10-27 20:09:08 -03:00
Francisco Gindre c2177fe83f
Merge pull request #582 from zcash/fix_transparent_balance_error_handling
[#581] getTransparentBalanceForAccount error not handled
2022-10-27 12:55:45 -03:00
Lukas Korba cfe71d5da2
[#523] Make a CompactBlockProcessor an Actor (#565)
- Sample app refactored for the processor being an actor
- tests refactored as well
- dark side tests fixed
- utilities separated to new file
- synchronizer's start and stop are no longer in async context
- updating the UI for the scan fixed
2022-10-27 12:51:38 +02:00
Francisco Gindre 1d97ad920b [#581] getTransparentBalanceForAccount error not handled 2022-10-26 20:26:37 -03:00
Francisco Gindre c1c3762ce5
Merge pull request #578 from zcash/decrease_batches_on_bloated_chain
[#577] Fix: reduce batch size when reaching increased load part of th…
2022-10-26 17:27:51 -03:00
Francisco Gindre fc2f7aa055 Change version on podspec to release alpha 2022-10-26 16:44:08 -03:00
Francisco Gindre 545380b3e2 [#577] Fix: reduce batch size when reaching increased load part of the chain
Currently a 100 batch can take up to 3 minutes to scan. decrease the size of the batches when the increased load part of the chain is reached until a faster sync is implemented

See related counterpart to remove it issue #576

Closes #577
2022-10-25 18:21:32 -03:00
Francisco Gindre cbfa73181d
Merge pull request #575 from zcash/t-memo-bug 2022-10-25 14:00:54 -03:00
Francisco Gindre 5de1b50b29 make Memo and MemoBytes parameters nullable so they can be omitted when sending to transparent receivers.
update libzcashlc
2022-10-24 22:49:04 -03:00
Francisco Gindre b7528b4bf8
Merge pull request #573 from zcash/release/0.16.12-beta
[#572] release 0.16.12-beta with new checkpoints
2022-10-24 16:45:43 -03:00
Francisco Gindre 7403bcc809 Remove .orig file committed by mistake 2022-10-21 20:32:01 -03:00
Francisco Gindre bbe5a577d5 [#572] release 0.16.12-beta with new checkpoints 2022-10-21 18:47:47 -03:00