Commit Graph

724 Commits

Author SHA1 Message Date
Lukas Korba 6029a75038
[#637] Make sapling parameter download part of processing blocks (#650)
- sync process enhanced to try to download sapling params if needed
- tests fixed
- failing import Crypto -> import CryptoKit
- download params only if there are sapling funds
2022-11-29 07:38:28 +01:00
Francisco Gindre 7c9fddedf4
Add benchmarking info to SyncBlocksViewController (#649)
Fix Github action
2022-11-28 13:42:07 -03:00
Lukas Korba cc99fbad30
[#590] Fix or delete CompactBlockProcessorTests disabled tests it not needed (#653)
- The tests were fine in the end but Stream needed to be finished in any way, caused "for await" syntax to never finish
2022-11-28 15:08:55 +01:00
Lukas Korba d36c1fbc14
[#631] Verify SHA1 correctness of Sapling files after downloading (#643)
- Verification of the SHA1 after downloading the file(s)
- Private API is encapsulated in private extension
2022-11-23 09:47:56 +01:00
Michal Fousek 96a205644a
Merge pull request #642 from Chlup/sdksynchronizer_status_publisher
Change lastState property to Publisher from Subject in SDKSynchronizer
2022-11-23 09:11:36 +01:00
Francisco Gindre b350f6b220
[#639] Provide an API to estimate TextMemo length limit correctly (#640)
This provides a method for clients to handle UI for text memo
limit correctly handling memos that are visibly fit within the
capacity defined in ZIP-302 but when encoded into UTF-8 bytes
their size exceeds such limit.

Closes #639
2022-11-22 14:02:39 -03:00
Michal Fousek 1f2ea5e716 Change lastState property to Publisher from Subject in SDKSynchronizer
It's not good practice to make internal combine subjects accessible from
outside of SDK. So `lastState` is changed from `CurrentValueSubject` to
`Publisher`. This doesn't have any effect on public API. It just makes
SDK safer.
2022-11-22 14:10:27 +01:00
Michal Fousek 58b59bc9b3
Merge pull request #641 from Chlup/616_notifications_not_main_thread
[#616] Dont send notification from SDK on main thread
2022-11-22 09:59:18 +01:00
Michal Fousek 44a6970b73 [#616] Dont send notification from SDK on main thread
Closes #616

- Added small helper `NotificationSender` which is used to send
  notifications.
- No notificaiton is sent on main thread.
- Change how `status` is stored and update in `SDKSynchronizer`. It is
  now protected by lock. Before this wasn't needed because status was
  updated from main thread everywhere.
- `SyncBlocksViewController` in the sample app now uses
  `SDKSynchronizer` instead of `CompactBlockProcessor` directly.
2022-11-21 16:33:42 +01:00
Francisco Gindre bfaa20e384
[#597] Bump up SQLite Swift to 0.14.1 (#638)
Closes #597
2022-11-21 08:56:04 -03:00
Francisco Gindre 667bda24a7
Merge pull request #618 from Chlup/488_delete_cache
[#488] Delete cache db when sync ends
2022-11-17 08:24:53 -03:00
Francisco Gindre d9b85b40ad
Merge pull request #635 from zcash/release/0.17.0-beta
[#420] release 0.17.0-beta
2022-11-17 08:21:29 -03:00
Francisco Gindre d15cd5e33c [#420] release 0.17.0-beta
Closes #420
    Closes #634
2022-11-16 20:44:10 -03:00
Francisco Gindre 725e5ff291 [#634] Set ZIP-317 flag on sending and shielding as false for 0.17.0
Closes #634

    This turns off ZIP-317 fee strategy in favor of ZIP-313 fixed fees
    until this can be tested thoroughly
2022-11-16 20:27:12 -03:00
Francisco Gindre 07d918bd0d Add checkpoints update to CHANGELOG.md 2022-11-15 09:39:34 -03:00
Francisco Gindre caccafe190 change podspec version to 0.17.0-beta 2022-11-15 09:37:07 -03:00
Francisco Gindre a85787ff59 Add Checkpoints for Testnet and Mainnet 2022-11-15 09:31:34 -03:00
Michal Fousek 4e5cb505fa [#488] Delete cache db when sync ends
Closes #488

- When sync process is finished cache DB is removed from disk.
- Latest downloaded block is preserved becuase it's required to computes
  in which phase to resume sync process.
- `SDKSynchronizer.latestDownloadedHeight` public API is removed
  it makes no longer sense. This API was reading from cache DB.
2022-11-15 10:31:59 +01:00
Francisco Gindre f872cd9444
Merge pull request #624 from zcash/621_add_state_property
[#621] Adds a synchronizer state subject with the last available
2022-11-14 15:33:44 -03:00
Francisco Gindre 6208beec5c [#621] Adds a synchronizer state subject with the last available
state for this synchronizer.

also reports the SychronizerState on synchonizerStarted notification.

Add tests that verify the state being reported properly

Fix `BlockBatchValidationTests`
2022-11-14 14:44:33 -03:00
Francisco Gindre 4e07a2093f
Merge pull request #615 from zcash/prepare_sync
[#614] make prepare(with:) and get{pool_type}Address() synchronous
2022-11-11 14:08:21 -03:00
Francisco Gindre b9e00055e9 [#614] make prepare(with:) and get{pool_type}Address() synchronous
Closes #614

fixes travis ci

Removed `setStartHeight` function

I’m going back in time and this setHeight is not something we are using anywhere else than in the prepare function. This comes from the times we had `initialize(seed:birthday) and we don’t have that anymore

See diff 246d10edaa (diff-414771774e10bc81260094ffcdc7b310a3be48758b2abd2bfae831c83912c02c)

The `func setStartHeight(_ startHeight: BlockHeight)` function assumes that
there might not be a wallet birthday set up or that it might be changed
in-flight which are things that are no longer happening.

remove test warning

Fix test compiler error
2022-11-11 14:07:45 -03:00
Michal Fousek 6407820f77
Merge pull request #622 from Chlup/619_fix_incorrect_resume
[#619] Correctly resume syncing process in scanning phase
2022-11-11 15:11:50 +01:00
Michal Fousek 5e723566ba [#619] Correctly resume syncing process in scanning phase
Closes #619

- When computing next action in `NextStateHelper.nextStateAsync` now
  scanning state is also taken into consideration.
- When processing blocks download phase is skipped when it's detected
  that everything is already downloaded.
2022-11-11 14:54:44 +01: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