Commit Graph

1083 Commits

Author SHA1 Message Date
Carter Jernigan 640a72434c Android Gradle Plugin 8.0.1 2023-05-18 07:54:40 -04:00
Carter Jernigan 25a74666c4 [#925] Gradle 8.0.2 2023-05-18 07:54:40 -04:00
Carter Jernigan 040054cb7b [#936] Androidx updates 2023-05-18 07:54:40 -04:00
Carter Jernigan bc19797125
[#971] Refactor Rust FFI to separate module
---------

Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-05-18 07:36:15 -04:00
Honza Rychnovsky ca0e69d97f
[#1031] StrictMode violation: LeakedClosableViolation data db 2023-05-16 14:26:34 +02:00
Honza Rychnovsky 63a3bfe3e4
[#1034] Checkpoints update 2023-05-16 14:26:07 +02:00
Carter Jernigan f047c75941 Remove ECC Wallet from readme 2023-05-12 11:02:57 -04:00
Honza Rychnovsky 15603fcdf1
[#1023] Move Fetch UTXOs Before Block Sync
* [#1023] Move Fetch UTXOs Before Sync

* Add refreshTransparentBalance() after UTXOs fetch

* Add refreshTransactions() after UTXOs fetched
2023-05-11 14:55:58 +02:00
Honza Rychnovsky dfaa827fd1
[#1013] Sync stages parallelization
* [#1013] Sync blockchain sub-phases parallelization

- Remove the unnecessary comment after the latest changes in this code fragment

* Move solely CompactBlockProcessor-related constants

* Simplify sync range update construction

* [#1013] Sync blockchain sub-phases parallelization

* Changelog update

* Block files deletion documentation update

* Leverage buildList API

* CompactBlockRepository documentation update

* Move BlockBatch to internal models
2023-05-10 12:45:23 +02:00
Francisco Gindre e5c7e4b6c8
[#1018] add limit parameter to validateCombinedChain
* rust: cargo update

* rust: Migrate to `zcash_client_sqlite 0.7`

* rust: cargo fmt

* Adopt zcash_client_sqlite 0.7 database changes

* [#1018] add limit parameter to validateCombinedChain

* Adopt limit parameter in Android layer

* Switch limit argument to Long

- Switched from Int to Long type
- Done for both validate and scan blocks functions
- Changed the default parameter for nullable one in the public interface to let callers be explicit about the argument
- Changed in the Rust layer as well

---------

Co-authored-by: Carter Jernigan <git@carterjernigan.com>
Co-authored-by: Jack Grigg <jack@z.cash>
Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-05-10 11:49:42 +02:00
dependabot[bot] dd892d0406
Bump google-github-actions/auth from 1.1.0 to 1.1.1 (#1025)
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](e8df18b60c...35b0e87d16)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-10 10:55:19 +02:00
Carter Jernigan ebd176a287 [#1020] Kotlin 1.8.21 2023-05-09 05:57:22 -04:00
Carter Jernigan 953042e982
[#239] Remove pending transaction database 2023-05-05 17:46:07 -04:00
Carter Jernigan bb6d37d701 Adopt zcash_client_sqlite 0.7 database changes 2023-05-05 14:57:43 -04:00
Jack Grigg 6fa96fd0ac rust: cargo fmt 2023-05-05 14:57:43 -04:00
Jack Grigg 9bf48fbd4d rust: Migrate to `zcash_client_sqlite 0.7` 2023-05-05 14:57:43 -04:00
Jack Grigg 5f753a2b46 rust: cargo update 2023-05-05 14:57:43 -04:00
Carter Jernigan 354ef9efc9 [#1011] Ktlint 0.49.0 2023-05-03 10:16:24 -04:00
Honza Rychnovsky 2593556890
[#1009] Change CompactBlockProcessor methods signature
* [#1009] Change CompactBlockProcessor methods signature

* Remove withContext {}

Since our networking, RustBackend, and CompactBlockRepository all use coroutines internally by implementing `suspend` for their APIs, we don’t need withContext() anymore.  (If we discover something does do blocking IO on the thread, we should deal with it at the point the IO is occurring rather than at the top level)

* Sort FileExt functions

* Add isDirectorySuspend

- To avoid strict mode disc IO violation warning

* Omit try/catch on block files delete action

* Refactor scan batch function

- Removed retry mechanisms, as it’s not needed now after the previous switch from the database-based blocks persisting to file-based blocks persisting
- scan function now works with the current processing range of blocks size instead of hardcoded constant value

* Eliminate duplicate processorInfo object

* Change log text

* MutableList instead of ArrayList

* Eliminate sync range nullability

* Rewind not scanned blocks

If we find out that we previously downloaded, but not validated and scanned persisted blocks, we need to rewind the blocks above the last scanned height first.

* Fix ktlint warning

---------

Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2023-05-01 13:12:38 +02:00
Honza Rychnovsky ebff7fbefb
[#941] Fetch UTXOs setAddress() failure
- We rather use add address method for this use case, as the addresses field does not  seem to be initialized with a fixed size at the time of address setting
2023-04-20 08:04:13 +02:00
Honza Rychnovsky d633c6d380
[#986][#985][#984] Dependency updates
* [#986][#985][#984] Dependency updates

- KSP 1.8.10-1.0.9 -> 1.8.20-1.0.10
- Kotlin 1.8.10->1.8.20
- Compose versions update

* Remove workaround

---------

Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2023-04-19 10:31:53 +02:00
Honza Rychnovsky 416a0e4986
[#1001] Flank 23.01.0 -> 23.03.2
* [#1001] Flank 23.01.0 -> 23.03.2

* Fix version bump
2023-04-18 15:05:41 +02:00
Honza Rychnovsky eaed24b710
[#996][#935] Test coverage dependencies update 2023-04-18 14:37:48 +02:00
Honza Rychnovsky 26a22eb980
[#998] Test dependencies update 2023-04-18 14:36:56 +02:00
Honza Rychnovsky 48d5f0570d
[#1004] Desugar 2.0.2 -> 2.0.3 2023-04-18 14:34:18 +02:00
Honza Rychnovsky ebe5849a79
[#1006] Checkpoints update 2023-04-18 14:33:14 +02:00
Honza Rychnovsky d76e04e7bd
[#993] gRPC dependencies update 2023-04-18 14:32:40 +02:00
Honza Rychnovsky d9d5f9eb9c
[#963] Gradle versions plugin 0.46.0 2023-04-18 14:31:46 +02:00
dependabot[bot] a786ca1494
Bump google-github-actions/auth from 1.0.0 to 1.1.0 (#992)
Bumps [google-github-actions/auth](https://github.com/google-github-actions/auth) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/google-github-actions/auth/releases)
- [Changelog](https://github.com/google-github-actions/auth/blob/main/CHANGELOG.md)
- [Commits](ef5d53e30b...e8df18b60c)

---
updated-dependencies:
- dependency-name: google-github-actions/auth
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-18 08:56:23 +02:00
Honza Rychnovsky 937e00741b
[#988] Benchmark dependencies update 2023-04-18 08:52:17 +02:00
Honza Rychnovsky 8565fc879b
PR template update (#983)
* PR template update

- We applied the same changes as we agreed on in the Secant project in the task [#632].

* Additional minor formatting changes
2023-04-17 17:14:07 +02:00
Carter Jernigan fef809c015 [#978] Eliminate sent/received transaction APIs 2023-04-17 08:24:41 -04:00
Honza Rychnovsky b7a20698cc
[#895] Adopt new Response result
* [#895] Adopt new Response result

* Change catch flow part

* Correct emit from flow catch

* Additional changes after Block store on disk merged

* Simplify networking model structure

* Enhance flow filter

* Switch to coroutine client in a few tests too

* Use StatusException

* Switch client in a few tests

* Switch client for download block case

* Link fetch UTXOs issue

* Refactor refresh and process UTXOs

* Improve downloadBlockRange logging

* Switch getTAddressTransactions to the Response result

* Move some parts of requests out of try-catch

* Remove link to issue

* Refactor fetchUtxos to return Response

* Throws custom exception from ResponseFailure

- To trigger existing re-try mechanisms in case of any particular trouble
2023-04-14 12:55:51 +02:00
dependabot[bot] 6c31df68e9
Bump actions/checkout from 3.5.1 to 3.5.2 (#982)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](83b7061638...8e5e7e5ab8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 10:11:38 +02:00
Honza Rychnovsky 9a816ee25f
[#674] Use suspending functions for networking
* [#674] Use suspending functions for networking

- Initial commit to set up how we transform to the coroutine version of networking client

* Enhance flow filter

* Switch to coroutine client in a few tests too

* Use StatusException

* Comment out old UI demo app cases

* Switch client in a few tests

* Switch client for download block case

* Remove the blocking networking client entirely

* Link fetch UTXOs issue

* Refactor refresh and process UTXOs

* Improve downloadBlockRange logging

* Remove CompactBlockRepository.write(sequence)

* Remove “Coroutine” prefix

Since we only have a single implementation, the designation shouldn’t matter anymore

* Fix collection bug

* Finish network client renaming

* Collect write results internally

* Write method simplification

* Blocks sync logging reduce

* Unused unsafe models remove

---------

Co-authored-by: Carter Jernigan <git@carterjernigan.com>
2023-04-13 13:36:24 +02:00
Carter Jernigan d513ac6559 [#972] Min API 27 2023-04-13 06:29:42 -04:00
dependabot[bot] 9d2da8218e
Bump actions/checkout from 3.5.0 to 3.5.1 (#979)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...83b7061638)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-13 11:03:52 +02:00
Carter Jernigan 0930b6a32d Update version to 1.15.0 2023-04-11 07:42:31 -04:00
Carter Jernigan 38df994bfc [#971] Rust backend refactoring
This is an initial step before moving the Rust backend into a separate Gradle module

- Use primitive values for the Rust backend interface. This will allow the backend to be moved into a new Gradle module in the future, without needing to access the model objects of the SDK
 - Add extension functions to the Backend to replace the existing usage of more strongly typed objects.  The extension functions can continue to live in the sdk-lib even after refactoring the Rust backend
 - Add new decorator that can eventually replace using the Rust backend within the SDK
2023-04-11 06:43:18 -04:00
Honza Rychnovsky b9990f501e
[#766] Delete Blocks After Scanning
* [#766] Delete blocks after scanning

- Initial commit

* Minor formatting changes

* Add automated test

* Update manual test

* Move delete before enhance

* Improve terminology about deletion
2023-04-07 08:12:25 +02:00
dependabot[bot] e249bb732c
Bump actions/checkout from 3.4.0 to 3.5.0 (#969)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](24cb908017...8f4b7f8486)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 14:31:48 +02:00
Carter Jernigan 3ac744a2c7 Further increase build timeout 2023-03-29 15:48:07 -04:00
Carter Jernigan 0e2212be9e Increase CI build timeouts 2023-03-29 13:15:01 -04:00
Carter Jernigan 134a1bae6d [#962] GRPC 1.54.0 and Protoc 3.22.2 2023-03-29 07:36:50 -04:00
Carter Jernigan 3839b6ae59 [#961] Androidx updates 2023-03-29 07:36:50 -04:00
Carter Jernigan ff1b9921bf [#959] Run CI tests on API 33 2023-03-29 07:15:27 -04:00
dependabot[bot] d530bc6146
Bump actions/setup-java from 3.10.0 to 3.11.0 in /.github/actions/setup (#956)
* Bump actions/setup-java from 3.10.0 to 3.11.0 in /.github/actions/setup

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](3f07048e3d...5ffc13f417)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Revert lint stacktrace logging introduced in [#950]

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-03-29 12:47:17 +02:00
dependabot[bot] 3869888d2c
Bump actions/checkout from 3.3.0 to 3.4.0 (#950)
* Bump actions/checkout from 3.3.0 to 3.4.0

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Temp lint stacktrace reveal

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Honza <rychnovsky.honza@gmail.com>
2023-03-29 11:35:41 +02:00
Carter Jernigan 0dcc720d5c
[#954] Use Rust 1.67.1 on CI
Rust 1.68+ fails.  We have a followup issue to resolve compatibility with newer versions of Rust

See #958
2023-03-29 10:18:50 +02:00
dependabot[bot] c54665c03c
Bump actions/cache from 3.3.0 to 3.3.1 in /.github/actions/setup (#949)
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](940f3d7cf1...88522ab9f3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-14 07:40:26 +01:00