Commit Graph

17176 Commits

Author SHA1 Message Date
Jack Grigg 3dd142d605 lint: Fix ShellCheck lints in Zcash scripts 2022-08-20 03:15:12 +00:00
Hennadii Stepanov 8294e51681 Enable ShellCheck rules
Enabled ShellCheck rules:
  SC1087
  SC2001
  SC2004
  SC2005
  SC2006
  SC2016
  SC2028
  SC2048
  SC2066 (note that IFS already contains only a line feed)
  SC2116
  SC2166
  SC2181
  SC2206
  SC2207
  SC2230
  SC2236

(cherry picked from commit bitcoin/bitcoin@1ac454a384)

Zcash: Applies more of this commit. It was partially backported in
zcash/zcash#4827, and is also partially backported here for the scripts
we actually have.
2022-08-20 03:13:52 +00:00
MarcoFalke 606358aae0 Remove script to clean up datadirs
This reverts commit 33c055c4f1.
(bitcoin/bitcoin#2295)

(cherry picked from commit bitcoin/bitcoin@fa85de9ff5)
2022-08-20 03:13:52 +00:00
Luke Dashjr 7fa4df7e7a Bugfix: Detect genbuild.sh in repo correctly
(cherry picked from commit bitcoin/bitcoin@ed1fcdcac0)
2022-08-20 03:13:52 +00:00
Luke Dashjr 8dbd2edd98 Bugfix: Only use git for build info if the repository is actually the right one
Also adds ability to disable check with BITCOIN_GENBUILD_NO_GIT=1 in the environment

(cherry picked from commit bitcoin/bitcoin@e98e3dde6a)
2022-08-20 03:13:52 +00:00
James White 0f0ff451b2 Add IPv6 support to qos.sh
(cherry picked from commit bitcoin/bitcoin@fc089ae47a)
2022-08-20 03:13:52 +00:00
Wladimir J. van der Laan fad9fba1e1 build: Get rid of `CLIENT_DATE`
Putting the build date in the executable is a practice that has no place
in these days, now that deterministic building is increasingly common.

Continues #7732 which did this for the GUI.

(cherry picked from commit bitcoin/bitcoin@d096d22446)
2022-08-20 03:13:52 +00:00
Andrés G. Aragoneses e4b9235274 autogen.sh: warn about needing autoconf if autoreconf is not found
Changes the error message from:
./autogen.sh: 9: ./autogen.sh: autoreconf: not found

To:
configuration failed, please install autoconf first

(cherry picked from commit bitcoin/bitcoin@889426d37e)
2022-08-20 03:13:52 +00:00
str4d eb8858ce27
Merge pull request #6127 from str4d/fix-shell-lints
Fix shell lints
2022-08-20 04:13:20 +01:00
str4d adc60d4646
Merge pull request #6125 from nuttycom/wallet/z_sendmany_ua_doc
Update `z_sendmany` help to clarify what happens when sending from a UA
2022-08-20 00:10:13 +01:00
Jack Grigg c11cf55b5b CI: Enforce shell lints to prevent regression 2022-08-19 22:40:36 +00:00
Jack Grigg 1f94372b86 lint: Fix shell lints 2022-08-19 22:40:02 +00:00
Kris Nuttycombe 6d8d82f18b Update `z_sendmany` help to clarify what happens when sending from a UA
Fixes #6124
2022-08-19 10:38:25 -06:00
Jack Grigg f21ba7a822 rust: Place tighter bound on encoded heights in `zcash-inspect`
From NU5, block heights are required to be encoded in the 32-bit
`nExpiryHeight` field, which places a bound on the maximum length of the
height encoded in a coinbase transaction.

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 04:20:10 +00:00
Jack Grigg e530f6f30a rust: Simplify `next_pow2` in `zcash-inspect`
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2022-08-19 04:18:36 +00:00
Jack Grigg fd7cb4bb4a rust: Add mnemonic phrase inspection to `zcash-inspect` 2022-08-19 04:13:05 +00:00
Jack Grigg b0bf639760 rust: Add address inspection to `zcash-inspect` 2022-08-19 04:13:05 +00:00
Jack Grigg a125180a50 rust: Add P2PKH signature checking to `zcash-inspect`
Co-authored-by: ying tong <yingtong@z.cash>
2022-08-19 04:13:05 +00:00
Jack Grigg 8d82cee9c8 rust: Add `zcash-inspect` binary for inspecting Zcash data
Currently supports Zcash blocks, block headers, and transactions. Some
consensus rules are also checked, and a JSON context object can be
optionally passed to provide any necessary details for extra contextual
consensus checks.
2022-08-19 04:13:05 +00:00
Kris Nuttycombe 9657f410ed
Merge pull request #6119 from sellout/editorconfig
Define some basic cross-editor configuration
2022-08-18 13:51:51 -06:00
Kris Nuttycombe 997995ee8f
Merge pull request #6117 from sellout/explicit-debug-log
Eliminate indirection for debug log
2022-08-18 09:50:43 -06:00
Greg Pfeil 8bf80ae641 Canonicalize some user-provided paths
These paths get displayed to users, so showing the resolved path (e.g.,
without "../") is clearer. Also, these paths are created if they don't
exist. So if you provide something like
`-exportdir=doesntexist/../real_path`, Boost will create `doesntexist/`
if you create the directories before canonicalizing the path, even
though it isn't used.
2022-08-17 11:44:53 -06:00
Greg Pfeil e8d45481d2 Define some basic cross-editor configuration
EditorConfig helps contributors make changes that fit the repo, even if
their local settings are different.
2022-08-17 09:44:03 -06:00
Greg Pfeil cca3b070bb Eliminate indirection for debug log
Many error messages would say "see debug.log" or similar, without
indicating where the debug log actually lives. This now prints the
actual path in those cases.

It also changes more general uses of "debug.log" to "debug log", since
the file name may not even be "debug.log" if the user has specified it.
2022-08-17 09:02:40 -06:00
str4d e9b4a1af09
Merge pull request #6116 from str4d/update-rust-deps-with-audits
rust: Update some of the pinned dependencies
2022-08-17 13:58:02 +01:00
Jack Grigg a2b971befb rust: Update some of the pinned dependencies
The primary purpose of this commit is an exercise in using `cargo vet`
for tracking audits of our Rust dependency updates. `cargo update` was
run, and then a simple-to-audit subset of the dependency updates were
audited and committed.
2022-08-17 10:39:38 +00:00
Jack Grigg 3bf9022d51 CI: Migrate to published versions of cargo-vet 2022-08-17 08:20:39 +00:00
DeckerSU 25c2b950ba
miner: fix MAXSOLS
https://github.com/KomodoPlatform/komodo/pull/556
882bc1ff7a
2022-08-16 13:19:50 +02:00
ebfull 317ce50622
Merge pull request #6112 from str4d/rust-1.63
depends: Update Rust to 1.63.0
2022-08-11 11:37:21 -06:00
Jack Grigg e27190d00a depends: Update Rust to 1.63.0 2022-08-11 15:51:57 +00:00
str4d 81764889c8
Merge pull request #6071 from str4d/llvm-14
Migrate to LLVM 14
2022-08-11 03:47:54 +01:00
Kris Nuttycombe df6e05173e
Merge pull request #6083 from zcash/leveldb-1.22
Update LevelDB to 1.22+
2022-08-10 18:14:43 -06:00
Jack Grigg 12c36670fe depends: Update Clang / libcxx to LLVM 14.0.6
In practice we are using 14.0.0 in most cases, as the LLVM Project have
not published Ubuntu binaries for any point release after 14.0.0 (which
we are using here).
2022-08-10 23:10:40 +00:00
Jack Grigg 93422e8fe2 depends: Update Rust to 1.62.1 2022-08-10 22:57:46 +00:00
Alex Wied f5c93e7d1d build: Reorder link targets to properly build on Nix 2022-07-29 15:30:58 -04:00
Alex Wied 17680fc896 cuckoocache: Add missing header 2022-07-29 15:30:41 -04:00
Daira Hopwood f38db34693 Add contrib/debian/copyright entry for crc32c.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-28 19:08:02 +01:00
Kris Nuttycombe 92b21576e0
Merge pull request #6101 from zcash/version-5.2.0
Version 5.2.0
2022-07-26 13:55:54 -06:00
Kris Nuttycombe d6d2093beb
Merge pull request #6099 from ebfull/release-v5.2.0
Release v5.2.0
2022-07-26 09:03:35 -06:00
Sean Bowe b63dc026c7
make-release.py: Updated release notes and changelog for 5.2.0. 2022-07-25 12:42:25 -06:00
Sean Bowe 011092e608
make-release.py: Updated manpages for 5.2.0. 2022-07-25 12:42:25 -06:00
Sean Bowe 9d8e85373e
make-release.py: Versioning changes for 5.2.0. 2022-07-25 12:38:28 -06:00
Kris Nuttycombe b3ac8ee76d
Merge pull request #6098 from daira/narrow-too-many-args
Update to cxx 1.0.72 and narrow use of `#[allow(clippy::too_many_arguments)]`
2022-07-25 11:48:24 -06:00
Kris Nuttycombe 4a17098b72
Merge branch 'version-5.2.0' into narrow-too-many-args 2022-07-25 10:42:15 -06:00
Daira Hopwood fe9dc18003 Narrow the use of `#![allow(clippy::too_many_arguments)]` in src/rust/src/sapling.rs.
This depends on the fix for https://github.com/dtolnay/cxx/issues/1061 in cxx 1.0.70.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-25 14:57:19 +01:00
Daira Hopwood a227652d7d Update cxx to 1.0.72.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2022-07-25 14:57:19 +01:00
Daira Hopwood 315f534b23
Merge pull request #6095 from superbaud/fix-gitian-5.2.0
Add cuckoocache.h to Makefile.am
2022-07-24 02:39:54 +01:00
sasha d326b8ba45 Add cuckoocache.h to Makefile.am
Like c85fae833e, the missing header ref
means that the `make dist` step of gitian builds don't include it in the
tarball, causing an error upon build.
2022-07-22 18:00:59 -07:00
Kris Nuttycombe 9186131098 Fix incomplete release notes for witness pruning. 2022-07-22 17:14:28 -06:00
Kris Nuttycombe 18223753ee
Merge pull request #6093 from nuttycom/release-v5.2.0-rc1
Release v5.2.0 rc1
2022-07-22 17:06:03 -06:00