Commit Graph

1143 Commits

Author SHA1 Message Date
Kris Nuttycombe 20c4e2f8b0 Release version 2.0.8 2024-01-30 18:03:52 -08:00
Kris Nuttycombe d7ac804135
Merge pull request #1361 from Electric-Coin-Company/feature-2.0.7
Feature branch for release 2.0.7
2024-01-30 10:01:12 -07:00
Kris Nuttycombe 59cf3570dd Update to zcash-light-client-ffi version 0.5.0 2024-01-30 08:44:47 -08:00
Jack Grigg c8a181d2f0 Merge branch 'main' into feature-2.0.7 2024-01-29 10:02:42 -08:00
str4d 2a8f6c2bb0
Merge pull request #1356 from Electric-Coin-Company/perf-and-summary-updates
Migrate to in-progress version of FFI backend 0.5.0
2024-01-29 17:57:22 +00:00
Jack Grigg ded20fe7b0 Migrate to in-progress version of FFI backend 0.5.0
Includes:
- Exposed `WalletSummary`.
- Exposed transaction proposals.
- `ScanSummary` returned from `ZcashRustBackend.scanBlocks`.

Closes Electric-Coin-Company/zcash-swift-wallet-sdk#1259.
Closes Electric-Coin-Company/zcash-swift-wallet-sdk#1299.
2024-01-29 09:47:14 -08:00
Lukas Korba 598e76ba58
Merge pull request #1360 from LukasKorba/1359-Release-2-0-6
[#1359] Release 2.0.6
2024-01-28 17:54:33 +01:00
Lukas Korba 4e4c4d0514 [#1359] Release 2.0.6
- changelog updated
2024-01-28 08:52:35 -08:00
Lukas Korba e3a3b4d1e7
Merge pull request #1358 from LukasKorba/1357-Checkpoints-update
[#1357] Checkpoints update
2024-01-28 17:50:00 +01:00
Lukas Korba e3cbd78712 [#1357] Checkpoints update
- new checkpoints added
2024-01-28 08:43:16 -08:00
Lukas Korba 06d2b6986f
Merge pull request #1352 from LukasKorba/1351-Recover-from-download-issues
[#1351] Recover from block stream issues
2024-01-25 13:36:01 +01:00
Lukas Korba f2a2dfb03c [#1351] Recover from block stream issues
- changelog updated
- block stream errors are now handled as a special case of error, retry logic is triggered but at most 3-times in case of service being truly down
- the failure is not passed to the clients so ideally the false positive errors are reduced as well as the delay in the sync time

[#1351] Recover from block stream issues (#1352)

- typo fixed
2024-01-25 13:35:46 +01:00
Lukas Korba cf6a1e7923
Merge pull request #1354 from LukasKorba/1346-Troubleshooting--synchronization
[#1346] Troubleshooting synchronization
2024-01-25 13:33:25 +01:00
Lukas Korba bca6ceb15f [#1346] Troubleshooting synchronization
- changelog update
- the sync time has been reduced by ~33%. The progress reporting frequency has been lowered down 5-times
- this is just first step and a quick improvement before we introduce advanced solution, covered in #1353

[#1346] Troubleshooting synchronization (#1354)

- typo fixed
2024-01-25 13:32:58 +01:00
Lukas Korba 0e4e1190e3
Merge pull request #1337 from LukasKorba/1336-Tweaks-for-sdk-metrics
[#1336] Tweaks for sdk metrics
2023-12-15 09:10:08 +01:00
Lukas Korba 1dde31e41a [#1336] Tweaks for sdk metrics
- the logs are split so it's not a huge string
- the log method is async
- added a new log with balances

[#1336] Tweaks for sdk metrics

- wait a bit so the logs are sorted in time

[#1336] Tweaks for sdk metrics

- wait a bit so the logs are sorted in time

[#1336] Tweaks for sdk metrics

- wait a bit so the logs are sorted in time

[#1336] Tweaks for sdk metrics

- cleanup

[#1336] Tweaks for sdk metrics

- changelog update

[#1336] Tweaks for sdk metrics

- checkpoints updated

[#1336] Tweaks for sdk metrics

- changelog typos fixed

[#1336] Tweaks for sdk metrics

- mocks generated
2023-12-15 09:01:04 +01:00
Lukas Korba dec7a02371
Merge pull request #1329 from LukasKorba/1328-Release-2-0-4
[#1328] Release 2.0.4
2023-12-12 20:07:12 +01:00
Lukas Korba 723c1d7a06 [#1328] Release 2.0.4
- Changelog updated with the date
2023-12-12 18:27:42 +01:00
Lukas Korba ad6ac80ee4
Merge pull request #1327 from LukasKorba/1325-Log-metrics
the logger has been extended to log the level as well
there is only partial match of levels between SDK logger levels, OSLogEntryLogLevel and OSLogType so only debug, info, error are fully matched
this is a base for the exporter on client's side
Scan & Enhance logs added
checkpoints updated
every CBP action is measured separately and collects the data, when the sync is done it dumps overview of the run to the logger
next run clears out the previous data and starts to collect fresh reports for the run
2023-12-12 18:23:07 +01:00
Lukas Korba 3e263f0c35 [#1325] Log metrics
- the logger has been extended to log the level as well
- there is only partial match of levels between SDK logger levels, OSLogEntryLogLevel and OSLogType so only debug, info, error are fully matched
- this is a base for the exporter on client's side

[#1325] Log metrics

- typos fixed

[#1325] Log metrics

- scan metric logs added

[#1325] Log metrics

- Scan & Enhance logs

[#1325] Log metrics

- checkpoints updated
- every CBP action is measured separately and collects the data, when the sync is done it dumps overview of the run to the logger
- next run clears out the previous data and starts to collect fresh reports for the run

[#1325] Log metrics (#1327)

- changelog update

[#1325] Log metrics (#1327)

- SDKMetrics updated to be mockable
- unit test updated

[#1325] Log metrics (#1327)

- performance tests cleaned out

[#1325] Log metrics (#1327)

- Network tests buildable again
2023-12-12 08:59:52 +01:00
Lukas Korba 5644f8913f
Merge pull request #1316 from pacu/custom-checkpoint-provisioning
Create a Dependency that can load checkpoints from bundle
2023-11-15 18:00:51 +01:00
Francisco Gindre 6625ffd711
Create a Dependency that can load checkpoints from bundle
Closes #1315

This PR introduces small changes on each commit.
Things done:

rename Checkpoint+Constants to Checkpoint+helpers

Move `Checkpoint` from Model folder to Checkpoint folder

Remove unused function `ofLatestCheckpoint` from BlockHeight

Create a protocol called `CheckpointSource` that contains the
relevant functionality to get checkpoints from Bundle

Create a set of tests that check that functionality is maintained
when a `CheckpointSource` is used instead of Checkpoint helpers

Implement `BundleCheckpointSource` and add Tests

Code clean up: move `BundleCheckpointURLProvider` to its own file

Code clean up: `Checkpoint+helpers` match file header

Replace use of `Checkpoint.birthday(with:network)` with CheckpointSource

Revert "Remove unused function `ofLatestCheckpoint` from BlockHeight"

addresses PR comment from @daira

This reverts commit d0e154ded7, since it
modifies a public API and it was not the goal of this PR.

Update Sources/ZcashLightClientKit/Checkpoint/BundleCheckpointSource.swift

Use a decent Date Format

Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>

Improve documentation on BundleCheckpointURLProvider

Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>

Improve documentation on BundleCheckpointURLProvider

Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>

use YYYY-mm-dd on file header

author: @daira

Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>

Add test that verifies that the exact height is returned if available
2023-11-08 15:45:14 -03:00
Lukas Korba 65cab30d64
Merge pull request #1319 from pacu/update-xcode-select-action
[#1318] Fix build github action failing
2023-11-02 16:28:06 +01:00
Francisco Gindre c5d2173271
[#1318] Fix build github action failing
Closes #1318
2023-10-31 14:47:39 -03:00
Lukas Korba 23486ccfcd
Merge pull request #1311 from LukasKorba/1310-Release-2-0-3
[#1310] Release 2-0-3
2023-10-20 12:55:02 +02:00
Lukas Korba fb7eb1978d [#1310] Release 2-0-3
- checkpoints updated

[#1310] Release 2-0-3

- FFI version bumped
- other dependencies bumped as well

[#1310] Release 2-0-3

- checkpoints mentioned in the changelog
2023-10-20 12:46:15 +02:00
Lukas Korba bd3ec59f09
Merge pull request #1309 from LukasKorba/1308-Enhancing-seems-to-not-process-all-ranges
[#1308] Enhancement seems to not process all ranges
2023-10-20 10:49:05 +02:00
Lukas Korba 6223170f80
Update CHANGELOG.md
- grammar check

Co-authored-by: Daira Emma Hopwood <daira@jacaranda.org>
2023-10-20 10:16:52 +02:00
Lukas Korba ab23f15fa1 [#1308] Enhancing seems to not process all ranges
- The enhance action is driven by lastEnhancedHeight value. The range is computed from it and every 1000 blocks are enhanced. The value hasn't been reseted with the new suggested ScanRanges so when some higher ranges were processed first, all lower heights were skipped
- fixed and covered with the unit test

[#1308] Enhancing seems to not process all ranges (#1309)

- changelog update
2023-10-20 09:54:17 +02:00
Kris Nuttycombe c1cc041ab0 Update CHANGELOG for 2.0.2 release. 2023-10-12 12:33:19 -06:00
Kris Nuttycombe f504dbd726
Merge pull request #1305 from LukasKorba/1303-Dont-invalidate-the-timer-with-the-error
[#1303] Don't invalidate the timer with the error
2023-10-12 12:31:51 -06:00
Lukas Korba 5983cd8f91 [#1303] Don't invalidate the timer with the error
- the most simple fix for this issue is to set the number of attempts to the "infinity"
- smarter solution will require a better retry logic in general, covered in #1304
2023-10-12 18:10:07 +02:00
Lukas Korba 8aeafa2f9b
Merge pull request #1302 from LukasKorba/1301-foundTransactions-don't-emit-after-rewind
[#1301] foundTransactions don't emit after rewind
2023-10-12 16:48:47 +02:00
Lukas Korba e763e29dc1 [#1301] foundTransactions don't emit after rewind
- There was a reset missing in the rewind() call. This method is a direct call affecting the state of the compact block processor but the ActionContext has been handled only in the synchronization pipeline. Manual reset was needed to reset the last enhanced height.
- tests added
2023-10-12 15:59:47 +02:00
Lukas Korba bb99939415
Merge pull request #1298 from LukasKorba/1295-Release-ZcashLightClientKit-2-0-1
[#1295] Release ZcashLightClientKit 2.0.1
2023-10-03 14:37:41 +02:00
Lukas Korba 08a16fce61 [#1295] Release ZcashLightClientKit 2.0.1
- checkpoints updated
2023-10-03 07:53:36 +02:00
Lukas Korba c13aaa0346
Merge pull request #1296 from LukasKorba/1294-Remove-all-uses-of-the-incorrect-1000-ZAT-fee
[#1294] Remove all uses of the incorrect 1000-ZAT fee
2023-10-02 12:51:45 +02:00
Lukas Korba 69e38e0667 [#1294] Remove all uses of the incorrect 1000-ZAT fee
- Removed deprecated zip-313 fee of 1000 Zatoshi
- default is now 10k zatoshi, the minimum defined by zip-317

[#1294] Remove all uses of the incorrect 1000-ZAT fee

- changelog update
2023-09-29 20:01:38 +02:00
Kris Nuttycombe 494a060469
Merge pull request #1291 from zcash/release-2.0.0
Post-Release 2.0.0 merge to `main`
2023-09-25 16:54:13 -06:00
Kris Nuttycombe 61aba39dc9
Merge pull request #1290 from zcash/reelase-2.0.0-final
Update `zcash-light-client-ffi` and other dependencies for 2.0.0 final release.
2023-09-25 16:09:41 -06:00
Kris Nuttycombe 71a6f580fc Update `zcash-light-client-ffi` for 2.0.0 final release. 2023-09-25 15:55:49 -06:00
Lukas Korba 18f2bd1960
Merge pull request #1289 from LukasKorba/1288-Extend-SyncStatus-with-stopped-state-and-map-it-to-synchronizer
[#1288] Extend SyncStatus with stopped state
2023-09-25 16:52:12 +02:00
Lukas Korba 13b994d2a5 [#1288] Extend SyncStatus with stopped state
- InternalSyncStatus as well as SyncStatus were extended with stopped state, this is needed to distinguish between upToDate and stopped via stop() method states as previously stopped state of block processor was mapped to upToDate
2023-09-25 16:33:04 +02:00
Kris Nuttycombe d8b069fd15 Update librustzcash to fix transparent balance issues. 2023-09-22 18:18:10 -06:00
Kris Nuttycombe 09c97184ec
Merge pull request #1282 from LukasKorba/1281-Database-is-locked
[#1281] Database is locked
2023-09-20 13:39:52 -06:00
Lukas Korba dc4e590f68 [#1281] Database is locked
- Execution of any query in TransactionSQLDAO was not thread safe. Since all queries goes through execute() method, this is now using a lock

[#1281] Database is locked

- global lock used, all rust backend code accessing data DB is under lock
- transactionsqldao is also under same lock

[#1281] Database is locked

- refactor + fbDB locked as well

[#1281] Database is locked

- lock around scalars added

[#1281] Database is locked

- comments addressed
- scalarLocked helper implemented
- connection().run and .transition locked as well

[#1281] Database is locked

- db used so it's not called twice

[#1281] Database is locked

- AccountEntity protected via globalDBLock as well
2023-09-20 19:13:52 +02:00
Kris Nuttycombe 17a36bb02d
Merge pull request #1275 from nuttycom/fix/transparent_history
Update zcash-light-client-ffi to adopt fix for missing transparent history
2023-09-19 16:42:27 -06:00
Kris Nuttycombe a338e1daf5 Apply suggestions from code review.
Co-authored-by: str4d <thestr4d@gmail.com>
2023-09-19 16:24:36 -06:00
Kris Nuttycombe 404eff21b1 Update to zcash-light-client-ffi version 0.4.0-rc.3 2023-09-19 15:43:52 -06:00
Kris Nuttycombe 5887288cde Note (and slightly repair) a misfeature in the demo app. 2023-09-19 14:17:24 -06:00