Commit Graph

3950 Commits

Author SHA1 Message Date
Kris Nuttycombe e37e490450
Merge pull request #1341 from nuttycom/fix_birthday_query
zcash_client_sqlite: Fix broken `account_birthday` method.
2024-04-06 09:50:48 -06:00
Kris Nuttycombe f7c29f0111 zcash_client_sqlite: Fix the broken `account_birthday` query. 2024-04-05 18:21:11 -06:00
Kris Nuttycombe 20e8bca8d9 zcash_client_sqlite: Add a test demonstrating the broken `account_birthday` query. 2024-04-05 16:56:54 -06:00
Kris Nuttycombe b60600a4c3 zcash_client_sqlite: Use `ZcashAddress` for persistence of sent note addresses
Prior to this change, the recipient of a sent transaction would always
be shown as the protocol-level address, instead of any unified address
intended as the recipient. Now, instead of reencoding the recipient
address, we use the original `ZcashAddress` value from the payment
request.
2024-04-05 16:48:13 -06:00
Kris Nuttycombe 86e1181259 zip321: Make `Payment` fields private. 2024-04-05 16:30:31 -06:00
Kris Nuttycombe 3ea7d84183 zcash_client_backend: Update to use extracted `zip321` crate 2024-04-05 16:25:21 -06:00
Kris Nuttycombe d982d7826a zip321: Replace dependencies on `zcash_keys` types with `zcash_address` 2024-04-05 16:10:22 -06:00
Kris Nuttycombe fdf86ad740 Move `zcash_client_backend::zip321` to the `zip321` crate. 2024-04-03 12:14:20 -06:00
Kris Nuttycombe 07d5aa4a79 zip321: Remove stub lib.rs 2024-04-03 12:14:18 -06:00
Kris Nuttycombe bbb8d1090a Add placeholder for a zip321 crate. 2024-04-03 12:13:47 -06:00
Kris Nuttycombe 430212cd53
Merge pull request #1184 from zcash/1169-sync-engine
zcash_client_backend: Implement async wallet synchronization function
2024-04-03 11:23:02 -06:00
Jack Grigg 7f017bc126 CI: Test with `sync` feature flag 2024-04-02 00:37:16 +00:00
Jack Grigg 24277a6ba4 zcash_client_backend: Implement async wallet synchronization function
This implements the necessary state machine for taking a wallet in some
arbitrary synchronization status, and fully scanning (the remainder of)
the chain.

Closes zcash/librustzcash#1169.
2024-04-02 00:26:08 +00:00
oscar-pepper 25b8404e2d
Add block cache trait (#1192) 2024-04-01 21:55:16 +01:00
str4d 023e3cad4c
Merge pull request #1337 from nuttycom/fix_suspicious_account_query
zcash_client_sqlite: Fix sloppy named-parameter reference.
2024-04-01 21:48:09 +01:00
str4d eff1a2be7d
Merge pull request #1339 from nuttycom/use_named_column_accessors
zcash_client_sqlite: Use named column accessors for `to_spendable_note`
2024-04-01 21:35:45 +01:00
Kris Nuttycombe bdd0990db2 zcash_client_sqlite: Use named column accessors for `to_spendable_note` 2024-04-01 13:49:40 -06:00
Kris Nuttycombe 9bd97814db zcash_client_sqlite: Use named column references in `to_unspent_transparent_output` 2024-04-01 12:19:54 -06:00
Kris Nuttycombe e618d80cde zcash_client_sqlite: Fix sloppy named-parameter reference. 2024-04-01 12:19:49 -06:00
Kris Nuttycombe 55895b85b5 zcash_client_sqlite: Add a test for multiple-account retrieval. 2024-04-01 12:19:48 -06:00
Kris Nuttycombe cc9ea3901c
Merge pull request #1334 from zcash/fix/ensure_orchard_in_default_ua
zcash_client_sqlite: Add a migration to ensure that default addresses…
2024-03-29 13:03:07 -06:00
Kris Nuttycombe c34b68204d zcash_client_sqlite: Add a migration to ensure that default addresses have an Orchard receiver. 2024-03-29 11:53:28 -06:00
str4d 86823c929a
Merge pull request #1333 from zcash/fix/single_pool_send_to_t
zcash_client_sqlite: Fix incorrect input selection filtering when sending to transparent.
2024-03-27 21:49:11 +00:00
Kris Nuttycombe 1cb33c8b06 zcash_client_backend release version 0.12.1 2024-03-27 14:58:12 -06:00
Kris Nuttycombe d431889560 zcash_client_sqlite: Fix incorrect input selection filtering when sending to transparent.
The "avoid pool crossing" conditions in not selection were erroneously
not taking into account the need to pay transparent outputs.
2024-03-27 14:58:12 -06:00
Kris Nuttycombe a58355f697 zcash_client_backend: Add a failing test for note selection error. 2024-03-27 14:58:12 -06:00
str4d 0d80f3c01a
Merge pull request #1331 from zcash/release-zcash_client_sqlite-0.10.2
zcash_client_sqlite 0.10.2
2024-03-27 19:07:52 +00:00
Jack Grigg bea4097ded zcash_client_sqlite 0.10.2 2024-03-27 11:05:26 -04:00
str4d 9195019375
Merge pull request #1328 from zcash/1326-zcs-fix-query
zcash_client_sqlite: Fix column name in UTXO query
2024-03-27 14:49:11 +00:00
Jack Grigg 5462f84676 zcash_client_sqlite: Fix column name in UTXO query
Closes zcash/librustzcash#1326.
2024-03-27 13:49:20 +00:00
Jack Grigg 020305fd20 zcash_client_sqlite: Add tests that hit zcash/librustzcash#1326. 2024-03-27 13:49:15 +00:00
Kris Nuttycombe 3ccc14f501
Merge pull request #1321 from zcash/fix_sent_note_recipient_constraint
zcash_client_sqlite: Fix sent note recipient constraint
2024-03-25 20:41:08 -06:00
Kris Nuttycombe da3869a576 Release zcash_client_sqlite 0.10.1 2024-03-25 20:00:48 -06:00
Kris Nuttycombe 4464e06616 zcash_client_sqlite: Permit either sent note recipient address or recipient account to be null, but not both. 2024-03-25 20:00:48 -06:00
Kris Nuttycombe ad4bc84098
Merge pull request #1319 from zcash/release-zcash_client_sqlite-0.10.0
Release `zcash_client_sqlite 0.10.0` / `zcash_client_backend 0.12.0`
2024-03-25 15:20:08 -06:00
Kris Nuttycombe 5e5ee19e25 Fix broken intra-doc link. 2024-03-25 14:19:50 -06:00
Kris Nuttycombe 366d5d7434 Release zcash_client_sqlite version 0.10.0
Closes #1126
2024-03-25 14:11:11 -06:00
Kris Nuttycombe 777adb871d Release zcash_client_backend version 0.12.0
Closes #1079
2024-03-25 14:03:42 -06:00
Kris Nuttycombe a9c4bc171b
Merge pull request #1296 from AloeareV/remove_doc_hidden
remove doc hidden from some keys
2024-03-25 13:46:14 -06:00
Kris Nuttycombe 304e5659fc
Merge pull request #1312 from zcash/avoid_dust_note_selection
zcash_client_sqlite: Disallow selection of dust notes.
2024-03-25 13:45:17 -06:00
Kris Nuttycombe bda72e36eb Put expensive tests behind an additional `expensive-tests` feature flag. 2024-03-25 13:27:42 -06:00
Kris Nuttycombe 895e8e3bab
Merge pull request #1306 from zcash/detect_spending_accounts
zcash_client_sqlite: Use consistent criteria for detecting what accounts fund a transaction.
2024-03-25 13:10:14 -06:00
Kris Nuttycombe 0d8f5692df zcash_client_sqlite: Disallow selection of dust notes.
At present, we don't take builder padding rules into account in the
determination of whether or not we can include spends of dust notes in
grace actions. It's too complex to attempt a complete fix for Zashi 1.0,
but we can have a tolerable workaround for launch by just never
selecting dust-valued notes.

This is a temporary solution; opened #1316 to track the resolution.
2024-03-25 13:01:45 -06:00
Kris Nuttycombe 1719b0186c zcash_client_sqlite: Don't overwrite `account_id` with nulls in `put_sent_output`. 2024-03-25 12:42:43 -06:00
Kris Nuttycombe b68d97b614
Merge pull request #1314 from zcash/release-zcash_keys-0.2.0
Release zcash_keys version 0.2.0
2024-03-25 12:13:50 -06:00
Kris Nuttycombe b82740bc24
Merge pull request #1313 from zcash/release-zcash_proofs-0.15.0
Release zcash_proofs version 0.15.0
2024-03-25 12:13:36 -06:00
Kris Nuttycombe 4ba7fbd977 zcash_client_sqlite: Clarify `TransferType` matches in `store_decrypted_tx` 2024-03-25 11:55:06 -06:00
Kris Nuttycombe f8c021546d Release zcash_keys version 0.2.0 2024-03-25 11:34:21 -06:00
Kris Nuttycombe 2bda943a2e Release zcash_proofs version 0.15.0 2024-03-25 11:23:53 -06:00
Kris Nuttycombe 181e8981b2
Merge pull request #1311 from zcash/release-zcash_primitives-0.15.0
zcash_primitives release version 0.15.0
2024-03-25 09:15:13 -06:00