Commit Graph

15464 Commits

Author SHA1 Message Date
Jack Grigg d85bfb4744 Migrate to latest revisions of Zcash Rust crates 2021-12-18 01:44:27 +00:00
str4d eb175dddaa
Merge pull request #5426 from str4d/5379-revert-lint-fix
Revert lint: Fix false positive
2021-12-17 22:05:17 +00:00
Kris Nuttycombe 8b093a79da
Merge pull request #5402 from LarryRuane/2021-12-getblocktemplate
Add defaultroots field to getblocktemplate
2021-12-17 12:28:06 -07:00
str4d 72aad89859
Merge pull request #5404 from LarryRuane/2021-12-05-getmininginfo
[rpc] mining: Omit uninitialized currentblockweight, currentblocktx
2021-12-17 18:07:44 +00:00
MarcoFalke 6d60f1a9c9 [rpc] mining: Omit uninitialized currentblockweight, currentblocktx
zcash/zcash:
The `getmininginfo` RPC now omits `currentblockize` and `currentblocktx`
when a block was never assembled via RPC on this node during its current
process instantiation. The relevant RPCs are `generate` (regtest only) and
`getblocktemplate`. Blocks are also assembled when running the internal
miner (`zcashd -gen=1`), after the node mines its first block.

(cherry picked from commit bitcoin/bitcoin@fa178a6385)
2021-12-17 09:35:30 -07:00
str4d 9e4b6f670d
Merge pull request #5398 from str4d/ed25519-zebra-3
`ed25519-zebra` 3
2021-12-17 03:55:46 +00:00
Larry Ruane c937ba5ae5 getblocktemplate: add NU5 commitments to new `defaultroots` section
- merkleroot
- authdataroot
- chainhistoryroot
- blockcommitmentshash
2021-12-16 18:52:04 -07:00
Kris Nuttycombe 5c2d91589f
Merge pull request #5427 from str4d/5321-remove-misleading-log-message
rust: Remove misleading log message
2021-12-16 17:44:49 -07:00
str4d 34a8677c43
Merge pull request #5403 from LarryRuane/2021-12-nuparams
test: automatically add missing nuparams (network upgrade heights)
2021-12-17 00:42:04 +00:00
Jack Grigg 1b7a031e7b rust: Remove misleading log message
We use the `zcash_address` crate to parse Unified Addresses (which we
currently do nothing with). That crate returns an `UnsupportedAddress`
error for unhandled address kinds, which we were previously logging.
However, we _do_ support the other address kinds; we just parse them in
the C++ code.

Closes zcash/zcash#5321.
2021-12-16 22:22:05 +00:00
Jack Grigg 09e0af815f Revert "lint: Fix false positive"
This reverts commit fb38cf0d90.

The lint fix caused a problem on macOS, where the escaped double quote
was interpreted as part of an argument, and not as defining an argument.
We will need to find another way to address the lint.

Closes zcash/zcash#5379.
2021-12-16 21:54:48 +00:00
str4d 6a57389f38
Merge pull request #5424 from str4d/update-deps-4.6.0
Update dependencies for 4.6.0
2021-12-16 20:57:43 +00:00
Kris Nuttycombe ceeede3dc6
Merge pull request #5422 from LarryRuane/2021-12-getspentindex-logging
Dont log ERROR: spent index not enabled
2021-12-16 12:58:10 -07:00
Jack Grigg 407a0d9324 qa: Postpone recent CCache releases 2021-12-16 17:58:05 +00:00
Jack Grigg c37a69a357 depends Update Rust to 1.57.0
Also adds a developer script to make updating the hashes easier.
2021-12-16 17:57:34 +00:00
Jack Grigg 0d310a79ca depends: Update Boost to 1.78.0 2021-12-16 17:57:34 +00:00
Kris Nuttycombe fc1a16f4ff
Merge pull request #5423 from nuttycom/fix/orchard_batch_verifydb
Batch-verify Orchard transactions at the block level.
2021-12-16 10:43:09 -07:00
Jack Grigg e257844261 cargo update
In the three days since the last update, `futures 0.3.18` was yanked due
to panics: https://github.com/rust-lang/futures-rs/issues/2529
2021-12-16 16:55:11 +00:00
Kris Nuttycombe 99b2098f89 Batch-verify Orchard transactions at the block level.
Fixes #5316
2021-12-16 08:58:14 -07:00
Larry Ruane d0e836a15e Don't log 'ERROR: spent index not enabled' 2021-12-15 07:53:26 -07:00
Jack Grigg df0534e35a cargo update
Thanks to metrics-rs/metrics#231 being merged, our dependency tree is
now almost entirely de-duplicated!
2021-12-13 21:27:02 +00:00
Larry Ruane 7fa0e1a6a9 test: automatically add missing nuparams
This test-only change allows python (rpc) tests to specify, for example,
that NU5 should be activated at height X, without having to specify all
the previous network upgrades. Previous upgrades can (and must) still be
specified if they activate at different block heights (than, in this
example, NU5). This makes tests easier to write (and read), especially
as the number of network upgrades increases over time.

Note that this change only affects zcashd behavior in regtest mode. For
the other network modes (testnet and mainnet), the activation heights
are hard-coded in chainparams.cpp.
2021-12-06 17:32:18 -07:00
Jack Grigg 6c0bd90ee6 ed25519-zebra 3 2021-11-29 20:01:57 +00:00
Jack Grigg 5ae516f7b0 cargo update 2021-11-29 19:56:48 +00:00
Kris Nuttycombe 7aaefab2d7
Merge pull request #5389 from superbaud/docker-volume-readme-patch
Correct typo in docker run's volume argument.
2021-11-24 13:24:54 -07:00
str4d c76b756a68
Merge pull request #5356 from nuttycom/feature/wallet_orchard-rename_tree_types
Rename OrchardMerkleTree -> OrchardMerkleFrontier, remove IncrementalSinsemillaTree
2021-11-23 20:34:23 +00:00
Kris Nuttycombe f49f4c73d8 Rename OrchardMerkleTree -> OrchardMerkleFrontier
Remove IncrementalSinsemillaTree; this will be replaced by
a more full-featured OrchardWallet type which embeds the
incremental merkle tree used in wallet operations.
2021-11-23 07:27:34 -07:00
str4d f8e99e7ba5
Merge pull request #5373 from ZcashFoundation/lib-zcash-script-sigops
Add legacy sigops counts to the zcash_script library API
2021-11-22 16:03:48 +00:00
Kris Nuttycombe c7089d2086
Merge pull request #5374 from rex4539/typos
Fix typos
2021-11-18 15:08:13 -07:00
Sasha 2d25e08fcc
fix typo in docker run's volume argument 2021-11-18 10:39:52 -08:00
str4d e9f450281b
Merge pull request #5388 from str4d/ci-pyflakes
CI: Add Pyflakes to lints workflow
2021-11-18 17:23:35 +00:00
str4d 0268ce0ad0
Merge pull request #5370 from str4d/dep-updates
Dependency updates
2021-11-18 15:01:09 +00:00
Jack Grigg 9fd44c76fa CI: Add Pyflakes to lints workflow 2021-11-18 14:45:39 +00:00
Jack Grigg 675e489aff rust: Move `incremental_sinsemilla_tree_ffi` into crate root
Having this be a submodule of `orchard_ffi` while following Rust 2018
module structure made it impossible to use the `include!` macro on
`orchard_ffi.rs`, which is exactly what the `zcash_script` crate does.
See this comment for details:
    https://github.com/rust-lang/rust/issues/50132#issuecomment-969450868

To resolve this, we restructure the FFI library crate to only have FFI
methods in "leaf" module files.
2021-11-18 11:40:16 +00:00
teor bdbd86edb7 Explain how to get rid of a tiny duplicated function 2021-11-16 18:29:04 +00:00
teor f4a8dc57e0 Explain UINT_MAX error return value 2021-11-16 18:29:04 +00:00
teor 7d24ada757 Remove redundant variable
Co-authored-by: str4d <thestr4d@gmail.com>
2021-11-16 18:29:04 +00:00
teor 3bae89c732 Use correct copyright header
Co-authored-by: str4d <thestr4d@gmail.com>
2021-11-16 18:29:04 +00:00
teor 77ab1831a1 Remove an unused header 2021-11-16 18:29:04 +00:00
teor fa181a2d08 Increment the zcash_script API version 2021-11-16 18:29:04 +00:00
teor 31bd2ba4f1 Add sigop count functions to zcash_script library 2021-11-16 18:29:04 +00:00
Janito Vaqueiro Ferreira Filho ae9266a1cd Move `CurrentTxVersionInfo` into a new file
Don't compile it for `zcash_script`.
2021-11-16 18:29:04 +00:00
Dimitris Apostolou e05c1ddf8a
Fix typos 2021-11-14 16:27:09 +02:00
Jack Grigg 5eca8d34ba depends: Update Clang / libcxx to LLVM 13 2021-11-06 21:44:24 +00:00
Jack Grigg 373206027f depends: Update Rust to 1.56.1 2021-11-06 21:06:30 +00:00
Jack Grigg 1364db2ded Bump all postponed dependencies 2021-11-06 21:06:30 +00:00
Jack Grigg ca7160ebab tracing-subscriber 0.3 2021-11-06 21:06:30 +00:00
Jack Grigg 2005c91d41 cargo update 2021-11-06 21:06:30 +00:00
str4d c4b2ef7c4e
Merge pull request #5355 from centromere/freebsd
Update support for FreeBSD
2021-11-07 10:05:58 +13:00
str4d edac70ba2f
Merge pull request #5367 from zcash/mdr0id-docker-rust-metrics
Update entrypoint.sh
2021-11-04 06:39:39 +13:00