Commit Graph

16376 Commits

Author SHA1 Message Date
therealyingtong 6af03626de Add z_listaccounts RPC.
Co-authored-by: Kris Nuttycombe <kris.nuttycombe@gmail.com>
2022-04-07 17:28:51 +08:00
str4d a86220ee62
Merge pull request #5835 from nuttycom/dep/update_secp256k1
Update to orchard-0.1.0-beta.3, incrementalmerkletree 0.3.0-beta.2, secp256k1-0.21
2022-04-07 03:21:11 +01:00
Jack Grigg b2b178bd21 lint: Add check that every Cargo patch has a matching replacement
We canonicalize git URLs when linting Cargo patches, because Cargo
treats `path/to/repo` and `path/to/repo.git` identically (and similarly
it strips a trailing slash), so we allow `.cargo/config.offline` and
`Cargo.toml` to mismatch in this way to minimise lints.
2022-04-07 02:14:52 +00:00
Kris Nuttycombe 63d13a437f Update to orchard-0.1.0-beta.3, incrementalmerkletree 0.3.0-beta.2, secp256k1-0.21 2022-04-06 17:48:49 -06:00
Kris Nuttycombe cc892fd48d
Merge pull request #5824 from nuttycom/bug/change_reveals_amounts
Fix condition where change outputs could violate z_sendmany privacy policy.
2022-04-06 14:57:08 -06:00
Kris Nuttycombe 834162a25e
Merge pull request #5833 from therealyingtong/fix-orchard-z_listunspent
Correctly derive UAs for unknown Orchard receivers.
2022-04-06 14:54:25 -06:00
str4d 8750178432
Merge pull request #5828 from zcash/docker_remove_stretch_for_buster
Update Dockerfile
2022-04-06 21:52:12 +01:00
therealyingtong 896ae6315b Correctly derive UAs for unknown Orchard receivers.
The previous code assumed that we would only see wallet addresses
that we had explicitly generated, and crashed if we detected a note
sent to a different Orchard receiver within a known account.

Fixes zcash/zcash#5827.

Co-authored-by: Jack Grigg <jack@electriccoin.co>
2022-04-06 23:42:51 +08:00
therealyingtong da5575a02d IsNoteSaplingChange: Inline internal recipient check.
This fixes the usage of IsNoteSaplingChange in z_listreceivedbyaddress.

Co-authored-by: Jack Grigg <jack@electriccoin.co>
2022-04-06 23:28:55 +08:00
Marshall Gaucher b06a3096d8
Merge pull request #5829 from zcash/merge-hotfix-v4.6.0-2
Merge hotfix-v4.6.0-2
2022-04-06 07:12:39 -07:00
therealyingtong 37c5bca411 Introduce push_orchard_result in z_listreceivedbyaddress. 2022-04-06 20:39:15 +08:00
therealyingtong 8a7283ca83 Introduce CWallet::HaveOrchardSpendingKeyForAddress. 2022-04-06 20:34:38 +08:00
therealyingtong 2f51461611 Merge remote-tracking branch 'upstream/hotfix-v4.6.0-2' into master 2022-04-06 17:38:51 +08:00
Kris Nuttycombe e6d498e9c9 Check privacy strategy when setting allowed change types. 2022-04-05 20:47:37 -06:00
Kris Nuttycombe a48aa0195c Add logging to the miner to provide more detail on tx selection. 2022-04-05 20:47:37 -06:00
Kris Nuttycombe 1d2f1d6689 Add a test demonstrating that change may cross the pool boundary without permission. 2022-04-05 18:16:57 -06:00
Marshall Gaucher c15fd4db9c
Update Dockerfile
Per discussion of Debian 9 (stretch) support
2022-04-05 16:55:42 -07:00
Jack Grigg 484edf2cdb wallet: Remove duplicate nullifier insertion into Orchard wallet
We have the same insertion a few lines earlier.
2022-04-05 18:22:36 +00:00
Jack Grigg b3b5429956 wallet: Add assertions during Orchard wallet bundle appends
`Wallet::append_bundle_commitments` should never be called twice on the
same bundle, as that breaks sequentiality requirements (which we already
check for), so it is safe to assert that the inserted values do not
overwrite any existing data.
2022-04-05 18:19:20 +00:00
Jack Grigg 838f1cccec Add trace-level logging to the Orchard wallet
This can be enabled with `zcash-cli setlogfilter trace` (or a more
specific filter to target just the Orchard wallet trace lines).
2022-04-05 18:18:49 +00:00
str4d 33c813c7a1
Merge pull request #5773 from daira/gitignore-tempfiles
.gitignore: add files temporarily created by autoconf
2022-04-05 14:57:35 +01:00
str4d 9e80e4aff6
Merge pull request #5819 from ebfull/fix-rescans
Fix logic for deciding whether to perform Orchard updates during rescan
2022-04-05 14:53:17 +01:00
Kris Nuttycombe 53a302cf3f
Merge pull request #5789 from nuttycom/bug/wallet_init_post_nu5
Fix a bug in initialization of the Orchard wallet after NU5 activation.
2022-04-04 20:06:34 -06:00
Kris Nuttycombe 98c848fd20
Merge pull request #5809 from str4d/5805-fix-thread-notify-wallets-init
wallet: Initialise ThreadNotifyWallets with wallets best block
2022-04-04 20:04:53 -06:00
Kris Nuttycombe ac0c24cfa0
Merge pull request #5820 from zcash/release-v4.6.0-2
Release v4.6.0-2
2022-04-04 17:42:09 -06:00
Jack Grigg ebe6f8b26d Update release notes for v4.6.0-2 2022-04-04 22:08:39 +00:00
Sean Bowe 979d0b5ee3
Fix logic for deciding whether to perform Orchard updates during rescan
In `ScanForWalletTransactions` we skip forward from `pindexStart` to a block
near our wallet birthday. But we use this as the basis for deciding the value
of `performOrchardWalletUpdates` later, which is wrong because our wallet
birthday might be beyond the NU5 activation height. The result is that we
won't actually perform the required scanning (mainly witnessing and so forth)
needed to spend notes in our wallet.
2022-04-04 16:06:11 -06:00
Jack Grigg f1b6e49998 make-release.py: Updated release notes and changelog for 4.6.0-2. 2022-04-04 21:53:34 +00:00
Jack Grigg 8a2c2d16b6 make-release.py: Updated manpages for 4.6.0-2. 2022-04-04 21:53:34 +00:00
Jack Grigg 4475210f87 make-release.py: Versioning changes for 4.6.0-2. 2022-04-04 21:50:30 +00:00
str4d 86e36b941b
Merge pull request #5814 from daira/backports-v4.6.0-2
Backports for hotfix v4.6.0-2
2022-04-04 22:34:58 +01:00
Kris Nuttycombe 8e4dd1e964 Only check nWitnessCacheSize on rewind if we've ever witnessed a Sprout or Sapling note.
This allows "rollback" for empty Sapling wallets injected into nonempty
chain state that is then rolled back.
2022-04-04 15:31:19 -06:00
ebfull fbddebc63f
Merge pull request #5804 from str4d/consensus-check-coinbase-shielded-spends
Apply HaveShieldedRequirements to coinbase transactions
2022-04-04 14:28:52 -06:00
Daira Hopwood 91c3bf7619 Merge branch 'swap_stretch_for_bullseye' (#5698) into backports-v4.6.0-2
(corresponds to merge commit 11bd9463c1)
2022-04-04 20:56:38 +01:00
Charlie O'Keefe adb73b33fa Remove stretch (debian 9), add bullseye (debian 11) in gitian descriptor
(cherry picked from commit 8c0e76e12b)
2022-04-04 20:56:26 +01:00
Daira Hopwood f25941bd43 Merge branch 'postpone-deps' (#5767) into backports-v4.6.0-2
(corresponds to merge commit 9befdb2c45)
2022-04-04 20:55:00 +01:00
Daira Hopwood 24c20d07e4 Postpone native_clang and libcxx 14.0.0.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
(cherry picked from commit 5abe1b82b4)
2022-04-04 20:54:42 +01:00
Daira Hopwood 57d347c5fe qa/zcash/updatecheck.py: print status code and response of failed http requests.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
(cherry picked from commit c28b004256)
2022-04-04 20:54:31 +01:00
Jack Grigg 8f4e853aba qa: Exclude `native_libtinfo` from dependency update checks
We are pinning a specific version to get Arch builds working.

(cherry picked from commit 479b10364b)
2022-04-04 20:53:45 +01:00
Daira Hopwood e631ca4d6b Merge branch 'bump-deps-4.7.0-rc1' (#5609) into backports-v4.6.0-2
This excludes 7b7dddba0c65062476ac00e1188e0e0a43f357f9: we do not update Rust crates.

(corresponds to merge commit 13351ff31d)
2022-04-04 20:51:21 +01:00
Jack Grigg 751c90879e depends: Revert to `libc++ 13.0.0-3` for Windows cross-compile
The 13.0.1-1 MSYS2 binaries cause linker errors due to missing `new` and
`delete` symbols. This commit partially reverts the LLVM 13.0.1 upgrade:
Windows cross-compilation still uses `clang 13.0.1`, but is compiled
against `libc++ 13.0.0`.

(cherry picked from commit fdb5709e7e)
2022-04-04 20:51:03 +01:00
Jack Grigg 0e7b5c35d9 rust: Fix clippy lint
(cherry picked from commit b5ce94d16c)
2022-04-04 20:50:54 +01:00
Jack Grigg 663308ae9d depends: Update Clang / libcxx to LLVM 13.0.1
(cherry picked from commit 2f1fbcc81f)
2022-04-04 20:50:32 +01:00
Jack Grigg 33f0a088fa depends: Update Rust to 1.59.0
(cherry picked from commit 21430b13ac)
2022-04-04 20:50:21 +01:00
Jack Grigg 31244d7a57 qa: Postpone recent CCache release
(cherry picked from commit adb7d074d5)
2022-04-04 20:50:12 +01:00
Jack Grigg e24deba8a7 qa: Bump all postponed dependencies
We have a pending PR to address the `native_ccache` and `googletest`
dependencies, and we aren't going to touch `bdb`.

(cherry picked from commit 4c49af7750)
2022-04-04 20:49:57 +01:00
Daira Hopwood 10bf089b76 Merge branch 'use-debian-libtinfo' (#5600) into backports-v4.6.0-2
(corresponds to merge commit f37d186e7e)
2022-04-04 20:48:27 +01:00
sasha 9c59279802 remove superfluous space at end of native_packages line
(cherry picked from commit 077f5550d4)
2022-04-04 20:48:16 +01:00
Daira Hopwood 14b05d8b34 Merge branch 'use-debian-libtinfo' (#5576) into backports-v4.6.0-2
(corresponds to merge commit 7d9dda4b7e)
2022-04-04 20:46:54 +01:00
sasha c79ee78a28 on Arch only, use Debian's libtinfo5_6.0 to satisfy clang
(cherry picked from commit 2d6dcd4750)
2022-04-04 20:46:00 +01:00