Commit Graph

523 Commits

Author SHA1 Message Date
Kevin Gorham ad5d4c4505
New: Update to the latest librustzcash crates. 2021-03-31 09:27:14 -04:00
Kevin Gorham 657fab680f
Add checkpoints for mainnet and testnet. 2021-03-31 09:22:18 -04:00
Kevin Gorham 79981f7ea2
Docs: Add placeholder for package documentation. 2021-03-31 09:16:31 -04:00
Kevin Gorham 997f6988a4
New: Add the ability to rewind and rescan blocks.
This one feature can fix lots of problems that wallets encounter and it is particularly useful for the 'Max Transaction' bug. See this iOS issue for more details: https://github.com/zcash/ZcashLightClientKit/issues/255
2021-03-31 09:16:06 -04:00
Kevin Gorham ad1f2438fb
Docs: Update README to draw attention to the demo app. 2021-03-31 09:07:37 -04:00
Kevin Gorham a7b6d00cf7
New: Add scan metrics and callbacks for apps to measure performance. 2021-03-31 08:51:53 -04:00
Kevin Gorham 24b428e3d5
New: Improve birthday logic.
Previously, the wallet had to manage determining the best birthday but that logic has now been pulled down into the SDK. A wallet can safely skip all blocks prior to the first transaction so the birthday starts as an estimate, based on the checkpoint and then moves forward to the height of the first transaction. If a user starts a wallet but does not receive funds for a long while, their wallet will have a better birthday as a result of this change and that is a very common use case.
2021-03-31 08:47:04 -04:00
Kevin Gorham 1ac3685819
New: Expose isStarted property of the Synchronizer. 2021-03-31 08:37:12 -04:00
Kevin Gorham a4d2f373da
New: Only refresh subscribers when a new block is detected.
For sanity, we also trigger a refresh if it has been an abnormal amount of time since a block was mined.
2021-03-31 08:35:09 -04:00
Kevin Gorham b5fc8bc8a2
New: Begin troubleshooting shutdowns and stops that are not graceful.
Calling stop should cleanly exit the synchronizer. Instead, we are seeing lots of errors and crashes. This can be made better but the first step is to add some logs to help troubleshoot the problem.
2021-03-31 08:30:51 -04:00
Kevin Gorham c761071d6f
New: Warn about potential testnet v mainnet database contamination. 2021-03-31 08:22:46 -04:00
Kevin Gorham eeafbd8c2f
New: Prefer the ZOMG lightwalltd instances. 2021-03-30 20:46:43 -04:00
Kevin Gorham ddf30d191c
Fix: repair broken test. 2021-03-30 20:45:35 -04:00
Kevin Gorham a0837474d0
Update ktlint formatting and imports. 2021-03-10 22:04:39 -05:00
Kevin Gorham bb5931a686
Updated checkpoint files. 2021-03-10 21:44:29 -05:00
Kevin Gorham 9dfc51967f
Merge pull request #216 from zcash/integration/auto-shielding-poc
Integration of all auto-shielding PoC changes
2021-03-10 18:24:31 -05:00
Kris Nuttycombe 4bcf74d871
Update to use data access API in librustzcash. (#172)
* Refactor to updated data access API.

* Update to latest librustzcash/data_access_api.

Co-authored-by: Kevin Gorham <kevin.gorham@electriccoin.co>
2021-03-10 13:31:55 -05:00
Adí 794a9f99b8
Add ktlint (#207)
* Add ktlint

Fix formatting per ktlint rules.
Upgrade dependencies & gradle.

* Move ktlint to apply section

* Keep unused-import check

Remove afterEvaluate check.

* Remove respository setup for ktlint.gradle

Fix format for SaplingParamTool & CompatBlockProcessor
2021-03-10 13:10:03 -05:00
Kevin Gorham ad67513afb
Use constant for anchor offset. 2021-02-25 13:15:09 -05:00
Kevin Gorham 80b65d5f96
New: Cleanup failed transactions.
Transactions that failed would previously remain in the pending transaction database forever. Now, they can be marked for deletion and removed after a while.
2021-02-23 17:35:22 -05:00
Kevin Gorham 7a2b97670d
Update database to support UTXOs. 2021-02-22 17:32:36 -05:00
Kevin Gorham 7214850abf
New: Sample test for auto-shielding.
Trying a new approach to writing sample tests that can serve as code examples.
2021-02-19 16:08:51 -05:00
Kevin Gorham 71ac92e77a
Update dependencies. 2021-02-18 16:07:57 -05:00
Kevin Gorham 1d2c7b1a4f
New: Non-Rust changes to support auto-shielding. 2021-02-17 16:07:57 -05:00
Kevin Gorham 5f90675b87
New: Rust changes to support auto-shielding. 2021-02-16 16:02:50 -05:00
Kevin Gorham 2115ecde6a
Align with the latest librustzcash changes. 2021-02-11 00:42:52 -05:00
zebambam bd9b8a4e69
Merge pull request #210 from zcash/208_publicly_commit_to_responsible_disclosure
Added responsible disclosure document describing bilateral vuln agree…
2021-01-27 14:04:26 -08:00
Eljo Prifti df2b4305ca
Unit test for param files (#211)
* write unit test for param files

* apply changes on PR request

* fix tests
2021-01-27 16:50:10 -05:00
Kevin Gorham ae95b53ce1
Corrections to match recent changes in data_access_api 2021-01-27 02:19:12 -05:00
zebambam eaafdc991b Added gmale suggestion of hyphentation. 2021-01-26 15:12:53 -08:00
zebambam 1bc2a416a1
Update responsible_disclosure.md
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-01-26 15:10:33 -08:00
zebambam cd625d995b
Update responsible_disclosure.md
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-01-26 15:09:58 -08:00
zebambam 117536d637 Added responsible disclosure document describing bilateral vuln agreements. 2021-01-26 14:17:49 -08:00
Eljo Prifti a09ce95c2e
Create SaplingParamTool and add a function for clearing the param files from cache (#206)
* Create SaplingParamTool.kt class
add clear and validate function

* add new line

* add SaplingParamToolTest.kt class

* fix PR request

* replace with one single line comment

* revert grandle at exact point in time

* revert build grandle to master

* align build.grandle file with the master one

* align with master
2021-01-22 17:05:11 -05:00
Kevin Gorham 2415bac043
Merge pull request #194 from herou/get_balance
Get balance
2021-01-06 21:47:19 -05:00
Kevin Gorham f864fa668b
Merge pull request #199 from zcash/fix/ssl-socket-crash
Fix/ssl socket crash
2021-01-05 19:37:47 -05:00
Kevin Gorham 7d82878bbd
Cleanup dependencies. 2021-01-05 18:42:52 -05:00
Kevin Gorham 0a12a6487e
New: Add the latest checkpoints. 2021-01-05 16:00:18 -05:00
Kevin Gorham 2f89d26663
Update version and changelog. 2021-01-05 14:42:49 -05:00
Kevin Gorham 9bf087bed8
Fix: Address Android 11 crash.
Closes https://github.com/zcash/zcash-android-wallet-sdk/issues/198
Addresses the underlying issue behind https://github.com/horizontalsystems/unstoppable-wallet-android/issues/3013
by making the necessary changes to upgrade to the latest version of gRPC and grpc-okhttp.
2021-01-05 14:42:23 -05:00
Eljo f97c7a41b9 put get balance doc after get address 2020-12-20 18:59:43 +01:00
Eljo 19f038d7e6 minor change 2020-12-20 18:37:15 +01:00
Eljo 68c75fe116 add get balance module in documentation 2020-12-19 21:47:49 +01:00
Eljo 3725624eaa add indicator 2020-12-19 21:38:25 +01:00
Kevin Gorham a9e609224f
Updated and cleaned up mainnet checkpoints. 2020-12-18 03:01:39 -05:00
Kevin Gorham 4ec72685db
Merge pull request #195 from zcash/release/1.2.1-beta03
Release/1.2.1 beta03
2020-12-18 02:39:00 -05:00
Kevin Gorham d93ddbdc0d
Update version and change log. 2020-12-18 02:37:11 -05:00
Kevin Gorham 1b5ee935a0
New: Complete changes for adding ZIP-313 to reduce the default fee. 2020-12-18 02:27:23 -05:00
Kevin Gorham c4ea984dc6
New: Update to the latest librustzcash crates.
Most notably, this enables ZIP-313 and reduced fees. For now, we've pinned to a commit on master. Eventually, we will point to crate.io versions once the release process is better defined.
2020-12-18 02:26:48 -05:00
Eljo dc972f2528 refactor code 2020-12-14 17:10:50 +01:00