Commit Graph

132 Commits

Author SHA1 Message Date
Janito Vaqueiro Ferreira Filho 357a8892e7 Build `secp256k1` separately using C99 standard
Remove the current Clang warning about compiling C code using C++ mode,
and also avoid errors in the future when the `zcash` dependency is
updated.
2021-07-15 00:27:49 +00:00
Janito Vaqueiro Ferreira Filho 56f5555467 Move `secp256k1` build into a separate function
This just moves the code that configures the build for `secp256k1p`, but
the plan is to have this function perform an independent build.
2021-07-14 21:56:24 +00:00
Janito Vaqueiro Ferreira Filho 7a72f7e36c Create `language_std` helper function
A helper function to configure the build's language standard and to
automatically enable or disable C++ support. This allows moving some
more code out of `main`, but it is also preparing for running more than
one build, for splitting the `secp256k1` library.
2021-07-14 21:55:39 +00:00
Janito Vaqueiro Ferreira Filho dbc90de1a2 Group all flags together
Make setting them more consistent.
2021-07-14 21:39:24 +00:00
Janito Vaqueiro Ferreira Filho 1ad71a572f Refactor 64-bit check into a helper function
Move some more code out from the `main` function to keep it easier to
read. Also renamed the function so that it better conveys that it's a
check returning a `bool`.
2021-07-14 21:26:45 +00:00
Janito Vaqueiro Ferreira Filho 6de36cb487 Refactor `is_big_endian` into a helper function
Simplify the `main` function a little by moving out some code.
2021-07-14 20:33:56 +00:00
Kirill Fomichev 7ea844c80f ci 2021-04-19 00:10:52 -04:00
Kirill Fomichev da49d7e406 Relax cc dep, bump bindgen 2021-04-19 00:10:52 -04:00
Jane Lusby d772451889 update readme to include release documentation 2021-04-16 18:21:43 -04:00
Jane Lusby 2f6c4bb75f
Update `depend/zcash` to newest version of upstream branch (#17)
* Squashed 'depend/zcash/' changes from d94fe7678..fa1a57867

fa1a57867 zcash_script: Add API to verify scripts with precomputed tx data
c81adc371 Auto merge of #4979 - nuttycom:upstream_siphash, r=str4d
cfc4ca181 Use SipHash-2-4 for address relay selection
407532d84 Switch CTxMempool::mapTx to use a hash index for txids
ec4196d8c Use SipHash-2-4 for CCoinsCache index
f3b2cdb32 Add SipHash-2-4 primitives to hash
a960e896d Auto merge of #4966 - str4d:zcash-script-lib, r=nuttycom
090e284f5 Auto merge of #4964 - str4d:univalue-update, r=nuttycom
cc5574b81 Auto merge of #4963 - defuse:fix-updatecheck-token, r=nuttycom
b9504dbb3 Auto merge of #4967 - LarryRuane:upstream-lockfixes, r=nuttycom
dc94d7605 Auto merge of #4968 - str4d:design-book, r=str4d
fecde3de1 Link to zips.z.cash for protocol spec
aec304d7a Show README as root of zcashd book
9cee5686b Actions: Add a workflow to deploy the zcashd book
8cfbabd6e Set up an mdbook in which we can document zcashd's architecture design
898226545 Fix unlocked access to vNodes.size()
6da9ecda0 Remove double brackets in addrman
5123af41d Fix AddrMan locking
e78376b4f Make fImporting an std::atomic
e286250ce Make fDisconnect an std::atomic
90232f65a Rename libzcashconsensus.la -> libzcash_script.la
ea8065917 Rename zcashconsensus_* -> zcash_script_* in APIs
c5e7b84e9 Rename src/script/zcashconsensus.* -> src/script/zcash_script.*
308bb1083 Add amount and consensus branch ID to zcashconsensus_verify_script
2e4edc507 Remove crypto/equihash from libzcashconsensus
92da71b0f Document the required .updatecheck-token file in the release docs
ce5d8daae Auto merge of #4961 - str4d:leveldb-1.22-prep, r=str4d
82b40d080 scripted-diff: Use UniValue.pushKV instead of push_back(Pair())
36e86d3c6 Merge commit '9e26ae1c78fe62e23dcca7b22e1cd1a42b45dd25' into univalue-update
7580890dc Auto merge of #4959 - str4d:dependency-updates, r=str4d
45392c221 Move the github API token out of updatecheck.py into an untracked file.
9e26ae1c7 Squashed 'src/univalue/' changes from 9ef5b78c1..98fadc090
3e672a58a Define TARGET_OS when host is android
b2f919213 Auto merge of #4754 - daira:fix-enable-debug, r=str4d
bd61fbf05 Ensure that `CONFIGURE_FLAGS=--enable-debug` correctly uses -O0 for dependencies and main build.
959e7be47 build: add missing leveldb defines
5d8fdbf73 [build] Add NETBSD leveldb target to configure.ac
5304bcd6b build: Updates for OpenBSD
f5d8c9338 Re-instate TARGET_OS=linux in configure.ac. Removed by 351abf9e035.
780e35419 cargo update
177df2c25 depends: Postpone updates that require adding CMake
4c7d17328 depends: ZeroMQ 4.3.4
07449c1a0 QA: Postpone BDB update again
bb242b6a7 QA: Remove unused update postponements
3e35bc8e7 qa: Postpone Boost and native_b2 updates
c996fc1ca Revert "Update boost to 1.75, postpone other updates."
c27870551 Auto merge of #4956 - str4d:clang-11-macos-build, r=str4d
d0902ab76 depends: Ensure the native_clang download path is for the builder
c7df8445d depends: Allow per-host package download paths
2de905ce8 Auto merge of #4951 - str4d:clang-11, r=nuttycom
fa41e9adc depends: Fix Boost warnings under Clang 11
a58d74c6b depends: Move to Clang 11
a0158ce83 Auto merge of #4950 - str4d:boost-build-backports, r=str4d
98ce8f838 depends: boost: Specify cflags+compileflags
cf70d2eb5 depends: boost: Remove unnecessary _archiver_
80205dcad depends: boost: Cleanup toolset selection
7f1598ad1 depends: boost: Cleanup architecture/address-model
44f95d404 depends: boost: Disable all compression
d5dfbe016 depends: boost: Split into non-/native packages
63390e503 depends: boost: Refer to version in URL
5c03db098 depends: Propagate only specific CLI variables to sub-makes
9e997afd8 depends: boost: Use clang toolset if clang in CXX
96cf6da5b depends: boost: Split target-os from toolset
b3fe7d336 depends: boost: Specify toolset to bootstrap.sh
2c1c82f59 depends: Propagate well-known vars into depends
0226ea464 depends: Consistent use of package variable
d64205350 depends: fix boost mac cross build with clang 9+
ee10eb77d build: Add variable printing target to Makefiles
06d234d77 Auto merge of #4934 - oxarbitrage:issue4917, r=nuttycom
4698523c3 Auto merge of #4936 - oxarbitrage:issue4932, r=nuttycom
ada04aa01 Fix pyflakes complaints
93d1aec9f Auto merge of #4935 - LarryRuane:4624-ibd-getheaders, r=nuttycom
e034e2676 Apply suggestions from code review
ab5577618 hide password in -stdin `walletpassphrase` command
e528caf7f Auto merge of #4937 - centromere:freebsd, r=daira
addf0b331 #4624 improve IBD sync by eliminating getheaders requests
8c000ae28 Auto merge of #4944 - nuttycom:ibd_skip_tx_messages, r=str4d
2e36d4208 Use parentheses for defined in windows-unused-variables.diff
feadf83de Auto merge of #4942 - str4d:rust-1.49, r=str4d
a0c1ba16d Set rust_target for all FreeBSD versions
5094a8b63 Auto merge of #4924 - daira:update-updatecheck, r=str4d
0bc90167f Skip "tx" messages during initial block download.
cea97a713 Auto merge of #4938 - sandakersmann:master, r=str4d
1614f1ebd Auto merge of #4913 - str4d:zcashconsensus-fixes, r=nuttycom
674fc8eb6 depends: cargo update
79f531c48 rust: Use renamed broken_intra_doc_links lint
070d4720e depends: Update Rust to 1.49.0
ae4ad8fc4 Update of copyright year to 2021
4660e85dd Update COPYRIGHT_YEAR in clientversion.h to 2021
61955934b Update _COPYRIGHT_YEAR in configure.ac to 2021
eadc3d48f Add support for FreeBSD 12
77db54764 split wallet.py tests
c07007ffc Auto merge of #4931 - rex4539:discord-invite, r=daira
74bd17fb2 Discord invite instead of direct link
b812c3ad9 Auto merge of #4928 - nuttycom:release-v4.2.0, r=daira
993feb59f make-release.py: Updated release notes and changelog for 4.2.0.
a6eb9fc7d make-release.py: Updated manpages for 4.2.0.
c75e663c2 make-release.py: Versioning changes for 4.2.0.
f63bfc5a2 Auto merge of #4927 - daira:mempool-limit-test-fix, r=daira
66fe7a378 Revert changes in #4916 that assumed arguments represent fees, when they are actually number of confirmations.
2c17d1e27 Store inputs and outputs by reference in JSDescriptionInfo
6c280abfa Remove init_and_check_sodium from crypto/common.h
c4ea42382 prevector: Terminate without logging on failed allocation
79ad5984b Remove JSDescription::h_sig
b1aa9365a Add JSDescriptionInfo for constructing JSDescriptions
726c5c8b1 Default to defining endian-conversion DECLs in compat w/o config
9bfcba933 gtest/test_mempoollimit: the test failed to properly ensure that the "low fee penalty" threshold matches the new ZIP 313 fee.
651e7fbfb Auto merge of #4923 - nuttycom:release-v4.2.0-rc1, r=nuttycom
86aa5d387 qa/zcash/updatecheck.py: remove dead code; print instructions to run `cargo outdated` and `cargo update`.
a0dd3e3ce make-release.py: Updated release notes and changelog for 4.2.0-rc1.
0b5b6d518 make-release.py: Updated manpages for 4.2.0-rc1.
f8bb085d8 make-release.py: Versioning changes for 4.2.0-rc1.
6fbf180b3 Auto merge of #4921 - nuttycom:fix_stdout_logging, r=str4d
8cdac686e Don't log to stdout if a file logger is configured.
c854ff774 Auto merge of #4919 - rex4539:old-boost, r=daira
2c0f6df16 Auto merge of #4916 - daira:reduce-fee, r=nuttycom
c2c69a12e Remove workaround affecting old Boost version
6771bef6d Auto merge of #4918 - str4d:update-deps, r=daira
e6a44ff83 Always allow transactions paying at least DEFAULT_FEE to be relayed, and do not rate-limit them. In other words, make sure that the "minimum relay fee" is no greater than DEFAULT_FEE.
8f4dd4460 Update boost to 1.75, postpone other updates.
5dce316f1 tracing: Simplify init logic using optional layers
c97665f39 tracing: Remove unnecessary tracing_init_inner internal function
bdf44b1cf cargo update
5e8436270 Reduce the default fee for z_* operations, and the "low fee penalty" threshold for mempool limiting, to 1000 zatoshis.
844ef48b4 Auto merge of #4912 - daira:daira-partial-revert-4904, r=daira
4fedb3244 Fix a typo introduced in #4904.
7a97e48cb Auto merge of #4909 - str4d:improve-logging, r=str4d
dea50714f Auto merge of #4892 - str4d:boosted, r=str4d
2840790f6 Partial revert of "Update links". See #4904
a05819614 Auto merge of #4603 - nuttycom:ff/no_global_params, r=daira
a8bcd46b8 test: Fix test_bitcoin compilation on macOS High Sierra
5b97cd27f Auto merge of #4904 - rex4539:https, r=nuttycom
bce1da684 Remove vestigial OSX_SDK_VERSION from darwin build.
f201e1e02 build: set minimum supported macOS to 10.14
8a1803b21 lint: Remove boost::variant and boost::optional from allowed includes
db17aae4d Finish migrating to std::optional
d8d091895 scripted-diff: Migrate from boost::optional to std::optional
521eb81a9 Add <optional> header to files that will need it
d9928926f Migrate from boost::optional::get to boost::optional::value
ae4551004 Finish migrating to std::variant
b521cb893 scripted-diff: Migrate from boost::variant to std::variant
f68c79554 Add <variant> header to files that will need it
83a4ae49b Auto merge of #4886 - LarryRuane:getblocktemplate-shielded, r=str4d
8239c756b mempool: Log all accepted txids at INFO level
a5736aad9 rpc: Log the new filter when we set it
b517be433 rpc: Reload CNode spans after reloading the log filter
42c38b00c net: Rework CNode spans
e9b5d8370 Prefer explicit passing of CChainParams to the Params() global.
5f68253e5 improve getblocktemplate performance for shielded coinbase
f459e43dc Update links
e9cc9b4ee Auto merge of #4896 - nuttycom:document_nsequence, r=daira
e7b425298 Auto merge of #4893 - str4d:ed25519-zebra-consensus, r=daira
ceccb10e4 Update minimum chain work and set activation block hashes for testnet
28e01d67f Update minimum chain work and set activation block hashes for mainnet
4ca2b2049 test: Use ed25519_verify in ConsensusTests
5ab69760c Auto merge of #4891 - zquestz:add_hex_to_getblock, r=daira
2e9bdc678 Write down the folklore about nSequence
7dbd969b1 Auto merge of #4882 - rex4539:fix-readelf, r=daira
307dd8837 Fix readelf configuration
36838ef60 Auto merge of #4889 - LarryRuane:getinfo-add-build-version, r=LarryRuane
c3a91be47 Switch to ed25519-zebra for consensus signature checks
77c2a5f81 Auto merge of #4877 - str4d:boost-backports, r=str4d
4cb31e5a1 Fix Hungarian notation nit from Daira
efb603557 Include transaction hex in verbose getblock output
18775308f add more version information to getinfo rpc
c8896f990 Auto merge of #4874 - str4d:rpc-tests-py, r=str4d
a7370b112 test: Run shielding-heavy RPC tests in serial
3a91bcfac test: Silence pyflakes unused import warning
21bfa3a0e readelf is Linux only
e03667b60 lint: Remove boost/foreach.hpp from allowed includes
ed5c647b4 refactor: Drop boost::this_thread::interruption_point and boost::thread_interrupted in main thread
8e2d9a78f gui: get special folder in unicode
1ffd2d5fa util: Replace boost::signals2 with std::function
df3b6684f clang-format: Delete ForEachMacros
c3983ccb1 scripted-diff: Remove #include <boost/foreach.hpp>
62114cff9 scripted-diff: Remove BOOST_REVERSE_FOREACH
e8b5d36ee Fix const_reverse_iterator constructor (pass const ptr)
46509b99f Introduce src/reverse_iterator.hpp and include it...
f5e98e0fb scripted-diff: Remove PAIRTYPE
92a867feb scripted-diff: Fully remove BOOST_FOREACH
32433c2ba Small preparations for Q_FOREACH, PAIRTYPE and #include <boost/foreach.hpp> removal
5a82dd081 Add autocomplete to bitcoin-qt's console window.
21a7ec8bf test: Run rpc-tests.py in full_test_suite.py
891fbff5b test: Adjust some Zcash RPC tests to work with parallel runner
01449d8a3 qa: Set correct path for binaries in rpc tests
bc644280b Add exclude option to rpc-tests.py
32249fb5b [qa][doc] Correct rpc test options in readme
b18c43746 [trivial] Add tests_config.ini to .gitignore
4f4f8d5ad Various review markups for rpc-tests.py improvements
6aad43b63 Refactor rpc-tests.py
cc099b3b7 Improve rpc-tests.py arguments
389b70caf Use argparse in rpc_tests.py
41c2bc1e0 Use configparser in rpc-tests.py
2eab4f750 remove obsolete run-bitcoind-for-test.sh
3accdb2fc Reorder RPC tests for running time
8b3c39ea8 [qa] rpc-tests: Apply random offset to portseed
0a73a0fbd [qa] test_framework: Exit when tmpdir exists
d014a3056 [qa] pull-tester: Only print output when failed
bcbf03ebe [qa] Refactor RPCTestHandler to prevent TimeoutExpired
352f2dc54 [qa] create_cache: Delete temp dir when done
2d90c8f0d [doc] - clarify statement about parallel jobs in rpc-tests.py
4500a7534 [qa] pull-tester: Don't mute zmq ImportError
e4d1dcc75 [qa] Remove unused code
b25a63593 [qa] Use single cache dir for chains
dbb41d108 [qa] Adjust timeouts for micro-optimization of run time
1b3866fd0 [qa]: enable rpcbind_test
3c7f4ca80 [qa]: add parsing for '<host>:<port>' argument form to rpc_url()
2fc450d94 [doc] Add OS X ZMQ requirement to QA readme
7366e8137 [qa] pull-tester: Start longest test first
fd7689ff0 [qa] pull-tester: Fix assertion and check for run_parallel
63a3c9ace [qa] test_framework: Use different rpc_auth_pair for each node
ecf9d8eb2 build: a few ugly hacks to get the rpc tests working out-of-tree
2399cfc7b Tests: add timeout to sync_blocks() and sync_mempools()
17caf1ddd [qa] test_framework: Append portseed to tmpdir
818d2de39 [qa] Remove hardcoded "4 nodes" from test_framework
5a12bc9d8 [qa] Add option --portseed to test_framework
cbe91ea85 [qa] pull-tester: Run rpc test in parallel
0d8a62925 [qa] pull-tester: Adjust comment
5f13446de [qa] Stop other nodes, even when one fails to stop
065255d3c [qa] Update README.md
08256c9ec [qa] Refactor test_framework and pull tester
15721275d [qa] Switch to py3
d362b632b [qa] rpc-tests: Fix link in comment and label error msg
cc4436831 [qa] pull-tester: Exit early when no tests are run
e7a6c49c0 [qa] pull-tester: Don't mute zmq ImportError
db761077e [qa] mininode: Catch exceptions in got_data
7108d6aaa [qa] rpc-tests: Properly use integers, floats
65a6249d4 [qa] Use python2/3 syntax
845b31a76 Check if zmq is installed in tests, update docs
239857d7d test: don't override BITCOIND and BITCOINCLI if they're set
fb1f76f33 [qa] pull-tester: Cleanup (run keypool, tidy stdout)
db27db2e4 [qa] keypool: DRY: Use test framework
fa44509d6 [qa] keypool: Fix white space to prepare transition to test framework
01c36295c [qa] Extend README.md
80b2274dd [qa] Split README.md to /qa and /qa/rpc-tests
800bf0a45 Remove unmaintained example test script_test.py
eaf4dfe28 Add basic coverage reporting for RPC tests
583263553 build: don't distribute tests_config.py
760e50081 [rpc-tests] Check return code
6aa4f19e8 [rpc-tests] fundrawtransaction: Update fee after minRelayTxFee increase
480f1bf43 Add tests for gettxoutsetinfo, CLevelDBBatch, CLevelDBIterator
8e58eddab [doc] trivial: fix markdown syntax in qa/rpc-tests/README.md
661858019 qa/pull-tester/rpc-tests.py: chmod 0755
772d78073 Migrated rpc-tests.sh to all python rpc-tests.py
4761c9f2b Add p2p-fullblocktest.py
95d1f887c Fix crash when mining with empty keypool.
877212414 Auto merge of #4745 - nathan-at-least:autoconf-require-prog, r=str4d
da081de35 configure.ac: Introduce macros to simplify requiring tools.
bf70e357c Auto merge of #4553 - oxarbitrage:issue4356, r=daira
9a5f9bf5e Merge branch 'master' into issue4356
10b09d483 Auto merge of #4793 - str4d:faster-rpc-tests, r=str4d
949fdca3a Auto merge of #4873 - str4d:rpc-test-blocks, r=str4d
2cc836680 Auto merge of #4843 - furszy:2020_improving_sendmany_redudant_loops_first_round, r=daira
044ff5716 test: Re-enable regtest difficulty adjustment for unit tests that use it
e3974db2d Auto merge of #4870 - mdr0id:canopy_smoke_tests_update, r=str4d
a7f9365fb test: Set hashFinalSaplingRoot default correctly in create_block
030a68539 test: Fix SignatureHash RPC test helper
bbed3ecc3 test: Remove FindAndDelete from RPC test framework
8bc0a591a Revert "remove SignatureHash from python rpc tests"
aead91419 [doc][trivial] no retargeting in regtest mode
03f1d38e0 Added fPowNoRetargeting field to Consensus::Params that disables nBits recalculation.
20dd32fe9 Auto merge of #4871 - rex4539:typos, r=str4d
31e220a31 Fix typo
4dc94c954 Update expected fails for  Sprout txns flows on Canopy
33fdb1b4b Auto merge of #4868 - daira:clean-removes-lib, r=str4d
6d856869e Auto merge of #4869 - zcash:release-v4.1.1, r=nuttycom
251405491 Add notable changes to release notes for v4.1.1
7ec8a9c5f make-release.py: Updated release notes and changelog for 4.1.1.
092829cf5 make-release.py: Updated manpages for 4.1.1.
142328b06 make-release.py: Versioning changes for 4.1.1.
f6fc97f35 Windows cross-build generates .lib files, which should be ignored by git and removed by clean.
9248cd743 Auto merge of #4864 - daira:go-faster, r=daira
61ebef409 Auto merge of #4865 - nuttycom:fix/shielded_coinbase_fr_rpc_fields, r=str4d
c8a90d9b9 Update getblocktemplate documentation.
1a8916794 Document how to get block subsidy information in getblocktemplate.
d107cf13b Correctly report founder's reward amount in getblocktemplate prior to Canopy
a0a87ab41 Set release CFLAGS/CXXFLAGS to use -O3.
0ccc88537 Auto merge of #4863 - nuttycom:fix/ibd_flag_check_order, r=daira
b5ad4cfc5 Change order of checks to skip IsInitialBlockDownload check if flag is unset.
2be143a20 sendmany::find_unspent_notes removing an unneeded recursive lock, GetFilteredNotes is already locking cs_main and cs_wallet.
b4e6353f2 asyncOp sendmany: moved inputs total amount check inside load_utxo before the dust validation.
ca9fc49fc rpc_wallet_tests: changed "Insufficient funds" error message to a proper "Insufficient transparent funds". This is because we are now throwing the insufficient transparent balance rpc error inside load_utxo.
3a1b51900 Improving asyncoperation_sendmany, removing another redundant for loop over all of the available utxos.
2c7b08029 sendmany operation: Creating TxValues struct to store the transaction values in a more organized manner.
a9f331587 move-only: asyncOp_sendmany, target amount calculation moved before find inputs (utxos and notes).
88eef5658 sendmany: removing now unused SendManyInputUTXO class.
726daeee4 asyncRPCOperation_sendmany:find_utxos, removing a redundant loop over all of the available utxo in the wallet.
c84390279 COutput: implemented Value() method.
d8e154ebf wallet:COutput adding fIsCoinbase member.
a1b7cd4b0 sendmany::find_utxo removing an unneeded recursive lock, AvailableCoins is already locking cs_main and cs_wallet.
359a05d6a wallet:AvailableCoins filter by destination/s feature implemented + connected to sendmany async operation.
4007e24ed asyncrpcoperation_sendmany::find_utxos removing a redundant coinbase check, coinbases are already being filtered by the AvailableCoins flag.
fbfb2c033 wallet:AvailableCoins nMinDepth filter implemented + connected to sendmany async operation.
e4e9712d0 wallet:AvailableCoins fOnlySpendable filtering flag implemented + connected to sendmany async operation.
ac792a394 Auto merge of #4860 - daira:clarify-meantarget, r=daira
4d16bfd18 GetNextWorkRequired: clarify why this computation is equivalent to that in the protocol spec. refs https://github.com/zcash/zips/pull/418
6c43a57e7 test: Use default shielded address in RPC tests where the type is irrelevant
5c47b9bb0 Auto merge of #4852 - str4d:cargo-update, r=str4d
120b184d8 cargo update
091f5d781 Auto merge of #4851 - adityapk00:mining_fix, r=str4d
7732b9aff Don't compile ehHashState::* if mining is disabled
60331b9e8 Auto merge of #4574 - oxarbitrage:issue4475, r=daira
5701095c2 Wording improvements to getrawtransaction RPC documentation
caed4adf5 Auto merge of #4849 - str4d:lint-fixes, r=str4d
e531d7233 doc: Adjust subtree developer notes to refer to Zcash
399ab8afa lint: Fix minor shellcheck lints
6b63fdd65 lint: s/trim/lenTrim in src/crypto/equihash.[cpp,h]
25dafc387 lint: Apply include guard style to src/rust/include
e6b1d4417 lint: Re-exclude subtrees from lint-include-guards.sh
dbfb3565d lint: Opt out of locale dependence in Zcash shell scripts
7c4b19fa4 lint: Use consistent shebangs
337e528d3 python: Explicitly set encoding to utf8 when opening text files
1944eb1c8 lint: Fix duplicate includes
d0a5343da lint: Fix missing or inconsistent include guards
c0c05ebb3 doc: improve subtree check instructions
9069364e5 [linter] Strip trailing / in path for git-subtree-check
cff7e776b Revert "Remove unused variable in shell script"
eb074fdb2 Improve git-subtree-check.sh
52d985403 Remove unused variables in shell scripts.
92633fdc3 uint256: replace sprintf with HexStr and reverse-iterator
5295079b2 test: Explicitly set encoding to utf8 when opening text files
ccf31edf6 [copyright] add MIT license headers to .sh scripts where missing
84a5830aa Auto merge of #4829 - str4d:backport-lints, r=str4d
1e6d1837a lint: Remove some subtrees from exclusion
5b543b15e lint: Allow stoi in src/rpc/blockchain.cpp
bd5ff7c88 Auto merge of #4835 - str4d:bctest-backports, r=str4d
95ad6fc6b test: Fix pyflakes warning in bitcoin-util-test.py
9dbf53544 lints: Add a missing copyright header
4b69b94bb Small documentation fixes
80a658fbd Auto merge of #4844 - ebfull:release-v4.1.0, r=daira
08fd678be Update approximate release height
90493623a Fix a comment about postponement of Clang upgrade
4f331d0f7 Update doc/release-notes/release-notes-4.1.0.md
f8c9a1f2d Update doc/release-notes/release-notes-4.1.0.md
fe681d2cc make-release.py: Updated release notes and changelog for 4.1.0.
453dacccf make-release.py: Updated manpages for 4.1.0.
75a8a6c25 make-release.py: Versioning changes for 4.1.0.
34c2a4b38 Postpone clang and libc++ dependency updates until after the 4.1.0 release.
2a78e3517 Auto merge of #4837 - daira:fix-gitian, r=daira
6cbaa65b5 Gitian builds: Remove manual CFLAGS and CXXFLAGS from descriptor.
e289f812d Improve logging in bctest.py if there is a formatting mismatch
abd7840c2 Clean up bctest.py and bitcoin-util-test.py
5508f1443 Add logging to bitcoin-util-test.py
3e2460b6f test: Add format-dependent comparison to bctest
2079d495f add verbose mode to bitcoin-util-test.py
e9c1703ba bitcoin-util-test.py should fail if the output file is empty
cbce715c0 Add option to run bitcoin-util-test.py manually
25193f0fa Add bitcoin-tx JSON tests
7c42009dd lints: Match `export LC_ALL="C"` in lint-shell-locale
69d3d3844 Follow-up to #13454: Fix broken build by exporting LC_ALL=C
32fe88362 lints: Update expected Boost imports
f318ab377 lints: Use Zcash-specific include guards for new files
d89f31dc4 Make lint-includes.sh work from any directory
bdaccd0f0 Run all lint scripts
1be9fa9ae Remove no longer needed shellcheck suppressions
68393a4b7 Fix warnings introduced in shellcheck v0.6.0
8ed37f5f4 Remove repeated suppression. Fix indentation.
37604a199 refactor/lint: Add ignored suggestions to an array
653f6dc7e qa: Ignore shellcheck warning SC2236
27f924108 Scripts and tools & Docs: Used #!/usr/bin/env bash instead of obsolete #!/bin/bash, added linting for .sh files shebang and updated the Developer Notes.
5b11b94d2 macOS fix: Add excludes for checks added in the newer shellcheck version installed by brew
73a6c29bc macOS fix: Work around empty (sub)expression error when using BSD grep
52f45ad9a use export LC_ALL=C.UTF-8
b90433afd fix locale for lint-shell
be186b811 Obsolete #!/bin/bash shebang
f98ced2ab Add linter: Make sure we explicitly open all text files using UTF-8 or ASCII encoding in Python
0eef155a4 Explicitly specify encoding when opening text files in Python code
1b32acdd5 Add linter: Make sure all shell scripts opt out of locale dependence using "export LC_ALL=C"
745ac0ae6 Add "export LC_ALL=C" to all shell scripts
aade01b18 docs: Mention lint-locale-dependence.sh in developer-notes.md
40316e935 build: Add linter for checking accidental locale dependence
9174ccaf0 build: Guard against accidental introduction of new Boost dependencies
c2848070b test: Move linters to test/lint, add readme
2788e3371 [contrib] convert test-security-check to python3
5d0affeaf add lint tool to check python3 shebang
eab2490ea Add shell script linting: Check for shellcheck warnings in shell scripts
5747638ec Refine travis check for duplicate includes
a3afa2a17 Add Travis check for duplicate includes
87bc7fc83 Add lint-include-guards.sh which checks include guard consistency
4ddfb216e Fix missing or inconsistent include guards
653846b0a Document include guard convention
b2d56059f [script] lint-whitespace: improve print linenumber
87f4e1c48 devtools: Exclude patches from lint-whitespace
c1683a142 [scripts] lint-whitespace: check last N commits or unstaged changes
034fe80a7 [scripts] lint-whitespace: use perl instead of grep -P
b77da1fd0 contrib: Ignore historical release notes for whitespace check
378d6d04a Add tab char lint check and exclude imported dependencies
5da5d5421 Add a lint check for trailing whitespace.
36463d42c Fix header guards using reserved identifiers
70e1e116a [Trivial] ensure minimal header conventions
75f1a4602 Auto merge of #4832 - therealyingtong:release-v4.1.0-rc1, r=daira
d66cabf8c Update release-notes-4.1.0-rc1.md
3cdef42bc make-release.py: Updated release notes and changelog for 4.1.0-rc1.
1f731e835 make-release.py: Updated manpages for 4.1.0-rc1.
f10cf663b make-release.py: Versioning changes for 4.1.0-rc1.
b61a7e2e8 Auto merge of #4831 - str4d:shell-cleanups, r=daira
ab5fdb7c7 Use bash instead of POSIX sh. POSIX sh does not support arrays.
8cd66cf69 Add error handling: exit if cd fails
5009f219e Auto merge of #4830 - daira:rename-bp-funding-stream, r=daira
d54dda736 Rename the FS_ZIP214_ECC funding stream to FS_ZIP214_BP. See also https://github.com/zcash/zips/pull/412 .
d6012677e Auto merge of #4826 - str4d:4823-static-assert, r=daira
d476537d8 scripted-diff: Remove BOOST_STATIC_ASSERT
1d5ed8fa2 Auto merge of #4744 - LarryRuane:4721-treestate, r=daira
a91a7d37c add z_gettreestate rpc
b9a4f291e Auto merge of #4812 - str4d:shielded-reqs-reject-reasons, r=str4d
311a079dd Auto merge of #4827 - str4d:commit-script-check, r=str4d
1b42734b9 tests: Update chained_joinsplits test for HaveShieldedRequirements API change
8aadc745c Use HTTPS in script license headers
e9b836d61 Update example scripted-diff comit in doc/developer-notes.md
1b01bd942 test/lint: Check for working changes before checking scripted diffs
001e803b9 test: Mention commit id in scripted diff error
1d3af1714 Enable ShellCheck rules
ccd074a59 scripted-diff: Run scripted-diff in subshell
3b1bf4b4a Add "export LC_ALL=C" to all shell scripts
6506fbacf test: Move linters to test/lint, add readme
9645ae5be [docs] document scripted-diff
6b6f3b564 Fail on commit with VERIFY SCRIPT but no scripted-diff
553c9e685 devtools: add script to verify scriptable changes
8f5630635 Add txid to "shielded requirements not met" messages
360540635 Auto merge of #4815 - daira:fix-checksum-message, r=daira
e86f83c62 Fix an error reporting bug in "Checksum missing or mismatched ..."
40d5f0aa5 Auto merge of #4805 - str4d:fs-abstraction, r=str4d
d7c80e760 utils: Remove unnecessary GetTempPath()
fef4b911d Auto merge of #4804 - str4d:update-secp256k1-again, r=daira
6fa2d1b73 Add logging to CCoinsViewCache::HaveShieldedRequirements
47c0c6532 Improve reject reasons for unmet shielded requirements
a4b6aaa33 Auto merge of #4810 - daira:fix-death-tests, r=daira
693def7ba Auto merge of #4733 - nathan-at-least:download-stamp-native_rust-fix, r=daira
f23528ddd Fix death gtests on macOS by switching to the threadsafe style.
888039caf Auto merge of #4808 - nuttycom:fix_release_notes, r=daira
4567e6f5f Replace invalid characters in log message decoding.
d264471f2 Auto merge of #4807 - nuttycom:release-fix-updatecheck, r=nuttycom
b28c5353e Fix invocation of updatecheck.py in make-release.py
94fa87385 depends: fix a logging bug for multi-archive packages.
3cf87df03 Remove unused Boost includes
e2273f101 [Trivial] Add BITCOIN_FS_H endif footer in fs.h
0d3bba071 Remove `namespace fs=fs`
532a0c5c5 torcontrol: Use fs::path instead of std::string for private key path
c0603a9fa Use fsbridge for fopen and freopen
73bc7a068 Replace uses of boost::filesystem with fs
7044e39a5 Replace includes of boost/filesystem.h with fs.h
082f530d6 Add fs.cpp/h
dafc0d35e Move GetTempPath() to testutil.
42929fae9 Add a source file for unit test utils.
0522f6f0d build: Update secp256k1 configure flags
eec9e2dca Update libsecp256k1 subtree to latest master
52ac87242 Squashed 'src/secp256k1/' changes from 8ab24e8da..c6b6b8f1b
afe85096c Auto merge of #4803 - therealyingtong:postpone-ccache, r=therealyingtong
cafc622a2 Auto merge of #4757 - str4d:update-secp256k1, r=str4d
d8f20860d Postpone native_ccache 4.0
990f77b4c build: Use the endomorphism optimization for secp256k1
53ba8172c Update src/secp256k1 subtree to upstream libsecp256k1
2fa8a70c1 Squashed 'src/secp256k1/' changes from 6ad5cdb42..8ab24e8da
1f06621e3 add myblockhash parameter to getrawtransaction
be9aec60f add address to z_importviewingkey error
REVERT: d94fe7678 zcash_script: Add API to verify scripts with precomputed tx data
REVERT: 2178e309d Rename libzcashconsensus.la -> libzcash_script.la
REVERT: 515b37aa2 Rename zcashconsensus_* -> zcash_script_* in APIs
REVERT: 021e8050d Rename src/script/zcashconsensus.* -> src/script/zcash_script.*
REVERT: 06d6b7d8b Add amount and consensus branch ID to zcashconsensus_verify_script
REVERT: 1f3b27427 Remove crypto/equihash from libzcashconsensus
REVERT: dc8ac9107 prevector: Terminate without logging on failed allocation
REVERT: 1075096bb Remove init_and_check_sodium from crypto/common.h
REVERT: 09e423ccc Remove JSDescription::h_sig
REVERT: bc2f687ca Add JSDescriptionInfo for constructing JSDescriptions
REVERT: 28c01c2b5 Default to defining endian-conversion DECLs in compat w/o config
REVERT: bd1166814 Replace boost::optional with std::optional
REVERT: 04bd26523 Replace boost::variant with std::variant

git-subtree-dir: depend/zcash
git-subtree-split: fa1a57867b742b0c44a9e96624e6bc58ef3912cf

* fix compiler errors related to building c code as cpp
2021-04-16 11:24:17 -04:00
Jane Lusby 7c1a79771c
Merge pull request #16 from ZcashFoundation/jane/precompute
Prior to this PR the zcash script verification logic in zebra has had an issue with quadratic serialization of transactions when verifying scripts. In the script verification API each input is verified individually. This would be fine, except for the fact that we also have to deal with FFI to another language with a different representation for transactions, which requires that we serialize and deserialize each transaction for each call into c++ code.

This PR solves this problem by exporting the newly setup "precomputed transaction" API, which lets us serialize our transaction once, pass it over, have zcash_script deserialize it once, and then pass us a `void*` pointer to the data they'd need for future function calls to verify individual transaction inputs. We then hold onto this pointer and pass it back into the C++ code for each input we verify, which prevents us from needing to do any more serialization for the duration of that transaction verification.
2020-12-10 13:29:42 -08:00
Jane Lusby 3d0b6b7927 (cargo-release) start next development iteration 0.1.6-alpha.0 2020-12-09 15:48:50 -08:00
Jane Lusby 6b903b1678 (cargo-release) version 0.1.5 2020-12-09 15:47:54 -08:00
Jane Lusby b8daff3417 update changelog 2020-12-09 15:47:16 -08:00
Jane Lusby 5534684937 re-export and test new precompute api 2020-12-09 15:22:40 -08:00
Jane Lusby f8e8a0cb3a Merge commit '881423287afb15e8e64090bf6036c827dea5f95f' into jane/precompute 2020-12-09 15:01:11 -08:00
Jane Lusby 881423287a Squashed 'depend/zcash/' changes from 650d13dad..d94fe7678
d94fe7678 zcash_script: Add API to verify scripts with precomputed tx data
2178e309d Rename libzcashconsensus.la -> libzcash_script.la
515b37aa2 Rename zcashconsensus_* -> zcash_script_* in APIs
021e8050d Rename src/script/zcashconsensus.* -> src/script/zcash_script.*
06d6b7d8b Add amount and consensus branch ID to zcashconsensus_verify_script
1f3b27427 Remove crypto/equihash from libzcashconsensus
dc8ac9107 prevector: Terminate without logging on failed allocation
1075096bb Remove init_and_check_sodium from crypto/common.h
09e423ccc Remove JSDescription::h_sig
bc2f687ca Add JSDescriptionInfo for constructing JSDescriptions
28c01c2b5 Default to defining endian-conversion DECLs in compat w/o config
bd1166814 Replace boost::optional with std::optional
04bd26523 Replace boost::variant with std::variant
43ab08485 Auto merge of #4611 - str4d:c++17, r=str4d
d0cb0b74a Switch from std::random_shuffle to std::shuffle
c656ae130 Add new copyright entries for build-aux/m4/ax_cxx_compile_stdcxx.m4
9052751c2 depends: Build C++ dependencies with C++ 17
9d1a11a0e build: Require and build with C++ 17
40a5bdfc7 build: Update AX_CXX_COMPILE_STDCXX macro
de5c28b4b Auto merge of #4613 - str4d:claaaaaang, r=daira
8fa19fd50 Auto merge of #4794 - LarryRuane:allow-getaddressutxos, r=daira
0dc05a772 Auto merge of #4790 - therealyingtong:add-addresses-getblocksubsidy, r=daira
eaed8d579 depends: Add untested note to FreeBSD host
162de8b26 Auto merge of #4800 - daira:contextualchecktx-cleanups, r=str4d
083a05b04 allow getaddressutxos if -lightwalletd
0940bc0c2 Remove void declaration of ScriptPubKeyToJSON()
2d2dc2c88 Auto merge of #4799 - daira:fix-gtests-displayduration, r=str4d
72a010770 Comment and error message cleanups for transaction checks.
f2d7fd632 contrib/devtools/symbol-check.py: add info about Fedora-based distributions.
d54d4d083 Update contrib/devtools/symbol-check.py
e0b391335 Rename `time` to `duration` in `DisplayDuration`.
a6822edfd Fix integer types in DisplayDuration.
6f3c29e9b Only return address instead of CScript
921e88674 Auto merge of #4797 - daira:log2-cleanup, r=str4d
7a1ed861c log(x)/log(2.0) can be written as log2(x).
e60c2bf17 Apply suggestions from code review
1c91003a5 Auto merge of #4787 - benzcash:ci-builders-libtinfo5, r=str4d
4e50b700e Minor cleanups
719c117f1 Handle shielded address case
6c41d1da0 Fix CScript encoding
ceb642550 Auto merge of #4789 - daira:4785-macos-tests, r=str4d
cec67e90c Add funding stream addresses to getblocksubsidy RPC output
98daea815 Auto merge of #4791 - str4d:pyflakes-fixes, r=str4d
11baa4d49 doc: Add Clang and libc++ migration to release notes
ee079a683 test: Fix various pyflakes warnings
ea7d57aa4 QA: Add native_clang and libcxx to updatecheck.py
c06cc5854 qa/zcash/full_test_suite.py: print immediately if a test fails.
f85ed2741 qa/zcash/full_test_suite.py: changes needed for macOS. fixes #4785
172b26991 Build python for debian9 and ubuntu16.04
c6f9215c0 Fixed Centos and Arch python requirements
1271afa35 Added Arch and Centos to script, added libtinfo5 for arch
bf450b260 qa: Disable FORTIFY_SOURCE checks
03e68a3ed Auto merge of #4782 - oxarbitrage:issue4769, r=str4d
b59869166 Added libtinfo5 to ci builder containers
52270f60e update function comment
5bd2df92a Auto merge of #4784 - LarryRuane:auto-GetConsensus, r=str4d
ea4c665da simplify TestBlockValidity
fb24911c5 Auto merge of #4570 - oxarbitrage:issue2783, r=daira
fbf274316 performance: auto params = CChainParams::GetConsensus()
5a1e6853c build: Add -lpthread to univalue test LDFLAGS
e917cb614 build: Compile secp256k1 with C99
ab4033c49 depends: Fix boost::iostreams usage on Windows with libc++
c691a8413 depends: Rename Boost libraries to follow MinGW/GCC convention
b076c8dfc Auto merge of #4770 - nuttycom:fastsync, r=nuttycom
c6abcc438 Use the current time as the timestamp if we override a misc warning.
a75c613ad Fix command-line help for -ibdskiptxverification
3973a1635 depends: Fix "unused variables" warning when compiling zeromq for Windows
2ca72adf8 build: Add missing LIBUNIVALUE to Makefile.bench.include LDADD
5ca4fbf8f build: Statically link libc++
fa54a1661 depends: Add multilib paths for Linux cross-compile
0887f64c9 depends: Don't replace default CXXFLAGS in C++ dependencies
1b9634786 depends: Add libc++ as a dependency
95e38235c Rename IBDSkipTxVerification back to ShouldCheckTransaction
acfa67594 Auto merge of #4778 - daira:no-nazis, r=daira
ff4cb00cb depends: Vendor LLD and use it for linking
4abd76f70 depends: Use vendored Clang for macOS cross-compilation
d3330ab79 Fix warnings surfaced by compiling with clang++.
d306b72be depends: Use vendored Clang for native compilation
d071e316e depends: Add Clang 8.0.0
48d975f95 Auto merge of #4775 - str4d:postpone-rustc-updates, r=str4d
a2f85199f Auto merge of #4779 - nathan-at-least:static-patchfile-bdb, r=str4d
5a47aa535 Convert a sed command to a static patch file.
3c8ce84d2 Auto merge of #4777 - daira:fix-bind-warning, r=str4d
60164a17e Beef up the CoC to address use of dog-whistles.
acf2d0718 Fix a new warning about use of boost::bind placeholders after updating Boost. closes #4774
88a7dd59c Reject incompatible flags in "Step 2"
8a2aaebd7 Ensure conflicting flags are reported as an error.
2c051acae Apply suggestions from code review
ebc8de390 Auto merge of #4776 - str4d:logging-files, r=str4d
f0c24bd9f -ibdskiptxverification must imply -checkpoints
b42582395 MOVEONLY: Move logging code from util.{h,cpp} to new files
293af68eb Apply style suggestions from code review
cd6845017 depends: Postpone current and scheduled Rust releases until 2021
e2d3533de Auto merge of #4773 - str4d:4651-combined-params-init, r=daira
ce26c21fb Auto merge of #4772 - daira:log-invalid-notept, r=daira
91172401a Reduce diff complexity.
508aadd2f FFI: Merge librustzcash_init_zksnark_params variants into one function
6e4090d84 Auto merge of #4766 - str4d:update-zeromq, r=str4d
007de0774 Add logging when we receive an invalid note plaintext (using the "receiveunsafe" log category).
a5c2daf61 depends: Update packages documentation for Zcash
fd841a1b8 Remove redundant CheckBlock calls.
0b4395d27 Add a config option to skip transaction verification in IBD mode
7c9fa2827 depends: ZeroMQ 4.3.3
3c4f9d383 build: pass --enable-option-checking to applicable packages
3420f0171 build: only pass --disable-dependency-tracking to packages that understand it
13f0e7874 depends: zeromq: disable draft classes and methods
84dfe6846 depends: Purge libtool archives
df60fd966 depends: Build secondary deps statically.
edfb4d98e [depends, zmq, doc] avoid deprecated zeromq api functions
92aa4d617 depends: Disable unused ZeroMQ features
b646bad8c Auto merge of #4765 - str4d:more-depends-updates, r=str4d
b56e5aa7b cargo update
be700a89c depends: ccache 3.7.12
a9f62bdda depends: Boost 1.74.0
4705aae32 Auto merge of #4763 - rex4539:remove-bitcoin-release-notes, r=str4d
d3978dbf8 Auto merge of #4762 - rex4539:remove-deprecated-init, r=str4d
c84ae00cb Remove Bitcoin release notes
1fa5d4670 Remove deprecated init.md
b667bfaa1 Auto merge of #4760 - rex4539:fix-zeromq-warning, r=daira
95a5c3033 Fix zeromq warning
ce44f60c2 Auto merge of #4758 - str4d:depends-updates, r=str4d
eb4c9ea0a Auto merge of #4484 - defuse:fix-undefined-behavior-in-bitcoin-test, r=str4d
3693b96ed Fix undefined behavior in the test_bitcoin tests
a98334493 Auto merge of #4752 - str4d:small-httpserver-backports, r=daira
2fbc111ef httpserver: Code style cleanups
e15eaf034 QA: Fix backporting bugs in httpbasics.py
939c5dfce Auto merge of #4756 - str4d:4755-exorcise-openssl, r=str4d
0d4a7b032 depends: Use correct HOST for download-linux target
076c1af55 depends: utfcpp 3.1.2
78a7230f5 depends: googletest 1.8.1
7725f6605 depends: ccache 3.7.11
96da9c2c0 depends: libevent 2.1.12
be7876adb build: Remove a stray -lcrypto
b5fa52b70 Auto merge of #4740 - str4d:remove-openssl, r=daira
ce0654e13 Cosmetics in CScriptNum code and tests.
932d62775 It's unnecessary to pass int64_t by const reference.
f432fe5eb Add assertions for CScriptNum[10] +/- int64_t to avoid the possibility of UB.
9ba10a807 Avoid undefined behaviour in scriptnum tests.
860e6e600 httpserver: replace boost threads with std
97194f2ab httpserver: use a future rather than relying on boost's try_join_for
26efd3aaf http: use std::move to move HTTPRequest into HTTPWorkItem
a500df556 http: Change boost::scoped_ptr to std::unique_ptr in HTTPRequest
1f106fa80 http: Add log message when work queue is full
fc9ce9e76 http: Do a pending c++11 simplification
b165ead16 Minor additional OpenSSL scouring.
bab853748 QA: Remove OpenSSL from updatecheck.py
ab35a260d Remove remaining OpenSSL references
ce1b5491d util: Remove OpenSSL multithreading infrastructure
fe49dc528 build: remove libcrypto as internal dependency in libbitcoinconsensus.pc
4526ecf9b doc: remove OpenSSL from build instructions and licensing info
f477932d3 depends: remove OpenSSL package
0ad49bca4 build: remove OpenSSL detection and libs
8993f1f70 build: remove SSL lib detection
c28c9b96a tests: Remove OldSetKeyFromPassphrase/OldEncrypt/OldDecrypt
7b3cb4823 Replace scriptnum_test's normative ScriptNum implementation
220e166e4 Move uiInterface.NotifyBlockTip signal above the core/wallet signal
66515b062 NotifyBlockTip signal: switch from hash (uint256) to CBlockIndex*
23556e690 http: Restrict maximum size of request line + headers
7d9406461 Auto merge of #4643 - str4d:locked-memory-manager, r=str4d
9245388bb Auto merge of #4749 - str4d:update-config-guess-and-sub, r=str4d
94cf4a494 Auto merge of #4558 - linuxion:master, r=str4d
abcce56fe [RPC] Add transaction size to JSON output
f43e3833f gitian: Switch from x86_64-unknown-linux-gnu to x86_64-linux-gnu
bd87bcf1b build: Switch to x86_64-pc-linux-gnu for codecov filtering
f52793d0d QA: Switch to x86_64-pc-linux-gnu for hard-coded Linux HOST
9384b78c0 depends: Update map of GCC canonical hosts to Rust targets
55acaf4bc allocators: Apply Allocator named requirements to secure_allocator::deallocate
66ac442da LockedPool: Make Arena::free and LockedPool::free noexcept
fa6921c48 LockedPool: Fix LockedPool::free(nullptr) to be a no-op
b2b5cccf3 test: Fix LFSR period in comments
b5ddac4b7 LockedPool: Switch to HTTPS URLs in licenses and comments
514d86817 Auto merge of #4739 - str4d:update-leveldb, r=str4d
f4c78c45b leveldb: Fix typo
e2eeabe9e Update license headers
f5582677a leveldb: Assert that ssize_t is the same size as size_t on Windows
3d79da1be build: out-of-tree fixups
a3fbfe4ef Improve readability by removing redundant casts to same type (on all platforms)
94f7ae6ce Fix subscript[0] potential bugs in key.cpp
e88626354 Auto merge of #4748 - rex4539:fix-typos, r=daira
8e5582411 depends: Update to latest config.guess & config.sub
d8ab28426 Auto merge of #4747 - rex4539:fix-cargo-checksum, r=str4d
67ffb189b Fix typos
4e1d3856e Remove reference to cargo-checksum.sh
8f15f5fcc Auto merge of #4734 - str4d:2-sodium-2-oxide, r=str4d
9ef15a841 Auto merge of #4746 - str4d:remove-rust-mingw-workaround, r=ebfull
256d6e33e Auto merge of #4743 - str4d:cargo-vendor-cleanups, r=str4d
7169cfc0d build: Remove Rust staticlib naming workaround
0f3baaba7 tracing: Correctly override tracing::Span move constructors
02b7d2afa blake2b: Allow consuming partial BLAKE2b output
2d172e121 Replace libsodium's crypto_generichash_blake2b with blake2b_simd
31f48caf0 Auto merge of #4690 - LarryRuane:CopyPreviousWitnessesPart2, r=str4d
ad56e9c2e Auto merge of #4693 - daira:explicit-coercions, r=str4d
a554f7ccc depends: Remove cargo-checksum.sh
49fc20ace Auto merge of #4720 - ebfull:fix-perf-regressions, r=str4d
f3e5adc16 Pull leveldb subtree
dd6b34250 Squashed 'src/leveldb/' changes from 524b7e36a..f545dfabf
cd819bf14 Merge leveldb subtree
55f90917f Squashed 'src/leveldb/' changes from 64052c76c..524b7e36a
7474d2cfb Bump leveldb subtree
b3f8c6e5f Squashed 'src/leveldb/' changes from c521b3ac6..64052c76c
990c6d244 Update LevelDB with latest Bitcoin-specific patches
b3b77fb75 Squashed 'src/leveldb/' changes from 196962ff0..c521b3ac6
55b4aa194 build: verify that the assembler can handle crc32 functions
b892fe13f Fixed multiple typos
f204f575a Add extra LevelDB source to Makefile
f26170126 leveldb: enable runtime-detected crc32 instructions
c333e99ec Update to LevelDB 1.20
f67e49655 Squashed 'src/leveldb/' changes from a31c8aa40..196962ff0
8dbec779e Merge in LevelDB 1.19 changes
b4be0846d Squashed 'src/leveldb/' changes from 20ca81f08..a31c8aa40
1e66c822c Do not include env_win.cc on non-Windows systems
7bf4f0b7e Add MIT license to Makefiles
9cc749769 build: out-of-tree fixups
a0336af87 build: No need to check for leveldb atomics
58d1bbfe6 leveldb: integrate leveldb into our buildsystem
52777e6d7 Update to latest zcash_* and zkcrypto crates.
16e91b053 cargo update
03ce24013 Update Rust to 1.44.1.
c9672a49c Auto merge of #4696 - str4d:3640-z_sendmany-any-taddr, r=str4d
3311a85db rpc: Fix comma spacing in example z_sendmany commands
e33f530a6 wallet: Ignore coinbase UTXOs with z_sendmany ANY_TADDR
8dcab5ee3 Auto merge of #4737 - nathan-at-least:link-to-read-the-docs-build-instructions, r=daira
fbca35e9d Line-wrap addition to README.md
933e841a7 Link the README.md to the specific readthedocs.io page for building on Debian/Ubuntu.
35bb61be3 Auto merge of #4725 - str4d:cargo-vendor, r=str4d
244934988 depends: Ensure that SOURCES_PATH exists before vendoring crates
c36ad21e7 QA: Comment out Rust crate checks in updatecheck.py
549bf2dfa depends: Switch to `cargo vendor` for Rust dependencies
b8650d6f4 Auto merge of #4732 - zcash:3786_review_dependencies, r=str4d
0314ad1a5 Postponed dependency updates, refer to core team sync meeting.
6f9b281ef Auto merge of #4706 - str4d:4705-nuparams-config-file, r=daira
81db0a2fc Flush witness data when consistent (part 2)
566e0d38b Allow multiple nuparams options in config file
f8e1a02bb Auto merge of #4561 - oxarbitrage:issue1873, r=daira
fbe68913b Ensure that the absolute path used in the test definitely does not exist.
21fee305a Fix grammar in error messages.
dc9c95b70 Apply suggestions from code review
6a7cfdea5 allow wallet file to be outside datadir
7e958be2c Auto merge of #4300 - oxarbitrage:issue3939, r=nuttycom
9d8555cf1 Fix forward declaration.
443954580 Auto merge of #4687 - defuse:fix-cscript-test-buffer-overflows, r=daira
af6ca1406 Auto merge of #4357 - oxarbitrage:issue2880, r=daira
cf8cd09ae Auto merge of #4349 - oxarbitrage:issue3996, r=daira
3caa78497 Auto merge of #2778 - syd0:add-python-assert, r=daira
bd4469339 Rename z_*_balance fields of getwalletinfo output to shielded_*_balance
4c4a1c4d6 Revert the move of the `getBalanceZaddr` block for ease of review.
48149defa Prevent creation of shielded transactions in initial block download.
ef62a1c5e Auto merge of #4688 - defuse:fix-rpc-test-string-interpolation, r=daira
5e7e9687f Auto merge of #4702 - ebfull:release-v4.0.0, r=ebfull
02c5f089c minor: Add backticks to avoid formatting in 4.0.0 release notes.
505495a73 make-release.py: Updated release notes and changelog for 4.0.0.
eedd28599 make-release.py: Updated manpages for 4.0.0.
01d1ea5f0 make-release.py: Versioning changes for 4.0.0.
539e487a3 Postpone updates for dependencies until after 4.0.0 release.
6937dff37 Set activation height for Canopy on mainnet.
5f398da32 Auto merge of #4700 - zcash:df-addrs, r=daira
889b05df4 Clarify a comment about the ZF and MG addresses
abd4b736e Add dev fund addresses for mainnet.
06d44392b wallet: Add ANY_TADDR special string to z_sendmany
75f9f8f95 Make some conversions explicit to reduce sanitizer warnings.
4003b597d Auto merge of #4686 - ebfull:release-v4.0.0-rc1, r=ebfull
c0f50ef8e Specify 4.0.0 in release notes
5a56246b9 Update names of contributors in release notes.
51b9e230d Add a missing % to a string interpolation in rpc test framework
9f284b501 Fix buffer overflows in P2PKH tests
af36ceae8 Add release notes to describe the Canopy network upgrade.
95d159c0e make-release.py: Updated release notes and changelog for 4.0.0-rc1.
4ce87e9e1 make-release.py: Updated manpages for 4.0.0-rc1.
a5d6dbde1 make-release.py: Versioning changes for 4.0.0-rc1.
104cc4dc7 Postpone rust updates
651721dcd Postpone boost 1.74.0 update
16c99c2c4 Auto merge of #4685 - LarryRuane:wallet-locking, r=ebfull
fb8dd9d45 CBufferedFile: use eof() method rather than feof(src) in error message.
6c20de21b CBufferedFile: assert that Fill() is only called when nReadPos == nSrcPos, and simplify based on that assumption.
868691020 Add null check to feof.
b94197436 Auto merge of #4313 - zancas:4312_define_EXPECTED_BLOCKS_PER_HOUR, r=daira
d3acf7574 Auto merge of #4542 - nuttycom:reorder_checks, r=nuttycom
bff5476a1 Add comment in lieu of redundant overwinter version check & fix tests.
494f0341a Auto merge of #4682 - str4d:rust-crate-updates, r=str4d
3261ba41b wallet: lock cs_main while accessing chainActive
6c1204b22 FFI: Rename r to rcm
fbe54c4b6 FFI: Rename to librustzcash_sapling_compute_cmu
0ac2261b7 qa: Update list of postponed crate versions
f0babb835 depends: cargo update
bb1e1e57a FFI: Migrate to bls12_381 and jubjub crates
3fd409433 FFI: Remove circuit parameter hashes from librustzcash_init_zksnark_params
c10ba7da4 depends: Migrate to zcash_* 0.3.0 Rust crates
35961c4ee add shielded balance to getwalletinfo
9dca208ef make deprecation.h include consensus/params.h
b464b7dcc Auto merge of #4678 - str4d:zip-215-more-test-cases, r=str4d
4089e760f consensus: Remove redundant contextual consensus rules
56de0a09c consensus: Reorder Overwinter+!Sapling rules
89274524e consensus: Move Sapling-disabled Overwinter rules above Sapling rules
8175dc5b7 consensus: Combine saplingActive conditionals
50afda023 consensus: Move overwinterActive rules ahead of saplingActive rules
25974d4d2 consensus: Add a placeholder for !canopyActive
830b8a44c consensus: Combine heartwoodActive conditionals
6027a61c2 consensus: Remove canopyActive gate around GetActiveFundingStreamElements
570478a07 consensus: Refactor Sprout contextual rules to match the rest
cf45a26ee consensus: Clean up some whitespace and variable names
a379f275d test: Update ZIP 215 test cases from ed25519-zebra
595b15fc4 Auto merge of #4675 - str4d:zip-207-ncc-comments, r=nuttycom
732f1a76e Adjust GetActiveFundingStream* comments
30619ae88 Auto merge of #4654 - str4d:sodium-oxide, r=str4d
d41cf3784 ed25519: Panic (triggering abort) if nullptr passed into APIs
efb4246ad Replace libsodium's crypto_sign with ed25519-zebra
c59505688 consensus: Clearly gate active funding stream elements on Canopy
016e35197 Auto merge of #4674 - therealyingtong:zip-212-ncc-fixes, r=therealyingtong
1ed936b89 Add link to ZIP212 in coinbase comment
768534a8b consensus: Statically check funding stream numerators and denominators
bfeaa0e4c consensus: Document the empty conditional branch in ContextualCheckBlock
b47f68675 consensus: Add assertions for Params::HalvingHeight parameters
2f2c8ea5f Rename PRV_DIVERSIFIER to PRF_TAG
c3f0e181e Auto merge of #4672 - charlieok:remove_debian_8_jessie_descriptor, r=str4d
edcecc8a3 assert(leadbyte == 0x02) after every if(leadbyte != 0x01)
952c7f7c7 Define PRF diversifiers in prf.h
992007ecb Move esk derivation check to beginning of plaintext_checks_without_height()
236122814 Add documentation specific to ZIP 212
1c447d85c Replace libsodium's randombytes_buf with rand_core::OsRng::fill_bytes
2605fc29d Remove 'jessie' (debian 8) from suites list in linux gitian descriptors
24863f30c Auto merge of #4619 - nuttycom:bazel-patches, r=daira
940fe0b3b Auto merge of #4657 - str4d:tracing-fields, r=str4d
5ca852ba4 debian: Rename X11 to Expat-with-advertising-clause in copyright
c2f991db5 Auto merge of #4659 - str4d:tracing-init, r=str4d
70b8aac97 Auto merge of #4670 - daira:update-checksec, r=str4d
0cdce269b Merge remote-tracking branch 'upstream/master' into bazel-patches
99bfa46d0 Auto merge of #3593 - arielgabizon:explain-expiry-error, r=daira
57a0418fb Repair full_test_suite.py for new checksec.sh.
eea06658f Newer version of checksec.sh from a6df608ac0
b3407f06c Auto merge of #1665 - bitbandi:master, r=daira
95a27e9fc Auto merge of #4661 - therealyingtong:history-node-garbage-test, r=daira
659a39931 Make sure garbage bytes are different
ddae98152 Auto merge of #4662 - therealyingtong:zip-211-ncc-fixes, r=daira
cb3a19f47 Add test for garbage memory in history nodes
41cf52500 Add missing curly braces after if statement
9e117fdeb Auto merge of #4547 - zebambam:add_libfuzzer_support, r=str4d
58dda603a Added libfuzzer support.
f8fa2fcad Added support for afl-clang-fast.
027a9925c init: Add spans for initialization and shutdown
735503b47 init: Rework tracing_init call
25d2e6e3c tracing: Rework tracing_init into a single function
90e86b53b tracing: Parse log_path into an Option<Path>
81446deef util: Use DEBUG level for LogPrint(), leaving INFO for LogPrintf()
c9879d2f9 Add fields to logging in CNode and UpdateTip
f54f9d5e0 tracing: Format field values with Display
d1e0087bd tracing: Add support for span fields
2502ebb18 Auto merge of #4656 - str4d:depends-fixes, r=str4d
31ba57281 tracing: Add support for event fields
4591a4f83 tracing: Add MAP macro
a7f695dba FFI: Fix tracing log path handling on Windows
682bc1575 depends: Split check-packages and check-sources across categories
ddc517b2c depends: Add platform-specific overrides for download files
2a3770cfb depends: Rework Rust integration
9487115cb Auto merge of #3952 - LongShao007:master, r=daira
2cd6d5c73 Auto merge of #4460 - rex4539:remove-deprecated-contrib, r=daira
b0b8c63a5 Remove deprecated contrib utilities
e0692ed4d Auto merge of #4642 - str4d:modernise-macos-toolchain, r=str4d
bf4730dd6 contrib: Update macdeploy README
927a03465 Merge branch 'master' into modernise-macos-toolchain
d36718542 Auto merge of #4597 - str4d:rust-tracing, r=str4d
1bd4d236d Throw error if -paramsdir not a valid directory
beae52ef9 Add paramsdir option for manpage
3b5966eef Allow configure params directory
205c7b584 Auto merge of #4653 - str4d:reliable-dependency-fetching, r=str4d
5ada9230a Revert "Add check-depends step to STAGE_COMMANDS list"
70c518bb8 depends: tracing-core 0.1.13
c9ca74fb3 qa: Add tracing dependencies to updatecheck.py
695d554ef doc: Update release notes for tracing backend
2ae4985d2 tracing: Document macro arguments that MUST be static constant UTF-8 strings
c87205e5e tracing: Log field values that aren't valid UTF-8
ba831f814 rpc: Throw error in setlogfilter if filter reloading fails
58c410974 init: Place additional constraints on pathDebug
92f18661d FFI: Add missing <stddef.h> includes
ba1f455e5 wallet: Fix logging to satisfy constexpr requirements
f57f1c17a tracing: Use 'static constexpr' hack in macros
cb294bbda FFI: Extract common codeunit types into a rust/types.h header
253ea6db3 Add some spans to the Zcash codebase
aae7583cd Add support for tracing spans
f89ea3fc3 Add an RPC method for setting the tracing filter directives
3f81f9be8 Add support for reloading the tracing filter
2b7d82471 Use a tracing EnvFilter directive for -debug flags
d5de95f17 Replace C++ logging with tracing logging
e04da7495 FFI wrapper around tracing crate
e6a52fa9c Add tracing to librustzcash dependencies
b6547929c Auto merge of #4593 - str4d:proofverifier-refactor, r=str4d
3855cf8be test: Remove obsolete TransactionBuilder test
022c3a4c6 Auto merge of #4567 - oxarbitrage:issue4537, r=daira
45b2a612e Update Makefile.am
9cdc6f2a8 depends: Use FALLBACK_DOWNLOAD_PATH if the primary's hash doesn't match
25ef1940b Revert "Try downloading from our mirror first to avoid headaches."
a4bfd2ea0 Revert "Rename FALLBACK_DOWNLOAD_PATH to PRIORITY_DOWNLOAD_PATH"
d6f527a88 Auto merge of #4650 - teor2345:patch-1, r=daira
591946491 Fix a comment typo in pow.cpp
67ab09ae4 Auto merge of #4646 - defuse:bump-dependency-update-deadlines, r=str4d
902bf838a Add new dependencies to updatecheck.py, add a flag we can use to have our CI test it.
88082c4a5 Extend deadline for postponing dependency updates
4e3c04c87 Auto merge of #4588 - nuttycom:remove_amqp, r=str4d
4dd0647c1 Remove Proton license from contrib/debian/copyright
0391809da Remove amqp code and Proton library depenencies & flags.
b383d6cad Merge remote-tracking branch 'upstream/master' into bazel-patches
bded4ca50 Auto merge of #4583 - oxarbitrage:issue4495, r=str4d
101857a29 Limit scope of all global std::once_flag
e591f94fc Assorted small changes to the locked pool manager
71b79b85d lockedpool: avoid sensitive data in core files (FreeBSD)
6b278b20c lockedpool: When possible, use madvise to avoid including sensitive information in core dumps
4277ef206 Fix segfault in allocator_tests/arena_tests
28825123e Fix compilation errors in support/lockedpool.cpp
3d635dd09 Fix out-of-bounds write in case of failing mmap(...) in PosixLockedPageAllocator::AllocateLocked
e64df0781 fix nits: variable naming, typos
1245ce0d8 Use best-fit strategy in Arena, now O(log(n)) instead O(n)
614d1bb20 Remove some unused functions and methods
2555074c2 LockedPool: avoid quadratic-time allocation
817e36b21 LockedPool: fix explosion for illegal-sized alloc
509652e93 LockedPool: test handling of invalid allocations
d0df44f15 Do not shadow variable, use deprecated MAP_ANON if MAP_ANONYMOUS is not defined.
088219f78 bench: Add benchmark for lockedpool allocation/deallocation
82a667591 rpc: Add `getmemoryinfo` call
d570eabc3 support: Add LockedPool
8d0f80f83 wallet: Get rid of LockObject and UnlockObject calls in key.h
b997b30a9 wallet: Change CCrypter to use vectors with secure allocator
20280556b [trivial] Switched constants to sizeof()
2589b2fcc Auto merge of #4614 - str4d:ctaes, r=str4d
fb2edcc35 Debian: Add copyright entries for ctaes and secp256k1
7e4a74ddf depends: bump native_cctools for fixed lto with external clang
7a714958d depends: enable lto support for Apple's ld64
25cc992ea depends: Add justifications for macOS clang flags
b22d18063 depends: specify libc++ header location for darwin
6ae57751c depends: Specify path to native binaries as clang argument
d6c3af5e8 depends: Decouple toolchain + binutils
a21fa08e0 doc: explain why passing -mlinker-version is required
6b785ae72 darwin: pass mlinker-version so that clang enables new features
cc934c2b1 macos: Bump to xcode 11.3.1 and 10.15 SDK
a53d5ea8e depends: bump MacOS toolchain
addae3b25 contrib: macdeploy: Remove historical extraction notes
6296a1e9a contrib: macdeploy: Use apple-sdk-tools instead of xar+pbzx
8e1a78ab6 native_cctools: Don't use libc++ from pinned clang
d02d06b56 Adapt rest of tooling to new SDK naming scheme
29fbb65b1 contrib: macdeploy: Correctly generate macOS SDK
79c707aaf Fix naming of macOS SDK and clarify version
d75478432 build: use macOS 10.14 SDK
a346fc008 depends: native_cctools 921, ld64 409.12, libtapi 1000.10.8
49c023c87 depends: clang 6.0.1
e04c18420 build: set minimum supported macOS to 10.12
d84878d85 scripted-diff: prefer MAC_OSX over __APPLE__
a0f3ef7e1 doc: mention that macOS 10.10 is now required
0d3e5fc43 depends: set OSX_MIN_VERSION to 10.10
63bfdad10 Fix a return status issue.
f39e4dbaf Auto merge of #4627 - LarryRuane:issue4596-flush-wallet-db, r=str4d
454fd23a9 Update .gitignore.
499d9c222 zcutil/distclean.sh: remove BDB utility programs.
6abcf40a3 add more allowed duplicates
615efd2a5 Auto merge of #4584 - defuse:update-ignore, r=str4d
24f3bcf27 Auto merge of #4623 - str4d:metrics-locking, r=str4d
91cb52adc Auto merge of #4606 - str4d:safe-mode-alert-for-pre-heartwood-nodes, r=str4d
b1b65121a Auto merge of #4590 - cwsaunders:master, r=str4d
e789632c3 Auto merge of #4640 - therealyingtong:v3.1.0-release-notes-update, r=str4d
f7b3a5550 Update doc/release-notes/release-notes-3.1.0.md
b5ee15b78 Add Debian8 deprecation to release notes
65f0a4736 Auto merge of #4638 - therealyingtong:release-v3.1.0, r=daira
369c16ef4 Set APPROX_RELEASE_HEIGHT to 917000 and update release-notes-3.1.0.md
228b17c9e make-release.py: Updated release notes and changelog for 3.1.0.
f25e86a46 make-release.py: Updated manpages for 3.1.0.
e4963385a make-release.py: Versioning changes for 3.1.0.
d08883263 Auto merge of #4636 - daira:disable-mining-regression, r=daira
162d5a50e Auto merge of #4610 - ebfull:testnet-dev-fund, r=str4d
40b9cbf0b Allow Equihash validation tests to be compiled with --disable-mining.
c99a00596 Fix --disable-mining build regression. closes #4634
283287ab5 Use 51 Testnet Dev Fund addresses, and adjust the end heights.
62c361381 Delay testnet activation height by one week
de52eed97 Auto merge of #4628 - therealyingtong:block-903002-bug, r=str4d
04b4d4276 Zero-initialize HistoryNode values.
13aa74aa4 Pass HistoryNode struct to librustzcash FFI
a65ecaad5 flush wallet db (SetBestChain()) on clean shutdown
5d15ee1f2 metrics: Collect general stats before clearing screen
d058568e0 Auto merge of #4617 - daira:release-notes-3.0.0-formatting, r=daira
6631f218d Auto merge of #4616 - daira:4615/hashrate-display, r=daira
ab4d2ede4 Set PROTOCOL_VERSION to 170012
8a4c51508 Set Canopy testnet activation height to 1020500
f7c7c76be Fix the formatting of the 3.0.0 release notes.
d9307ddd8 Add unit tests for DisplayDuration, DisplaySize, and DisplayHashRate.
460a601e9 Metrics screen: display hash rates using SI prefixes rather than as powers of 2.
976dce769 src/metrics.cpp: cosmetic whitespace changes.
c0a19854b Add dev fund addresses for testnet NU4 activation.
42f98aacc Send alert to put pre-Heartwood nodes into safe mode.
afd98c5e5 revert result key change, fix calls to getime
777cda942 Update to Python 3
6ab6279bd Updating to Python 3
19f641560 install bdb binaries
8f5dbd329 Enforce pre-release dependency update check in make-release.py
44c35c6f6 Change release instructions to block the release when dependencies are not updated and not postponed.
75876f477 Implement system for postponing dependency updates.
26522d212 only allow duplicates for certain options of the config
493c0f98a change order of returned pair, fix compatibility issue
18a1448ac add timestamp to warnings
bb0d3acb8 explain expiry error
9c96affb0 fix bug of bdb.mk
4bffaf040 Be consistent with how to #include test data headers
2ee9ce678 Be consistent about what path to include bitcoin-config.h with
39d87d8f1 Include header files within the source tree using "" instead of <>
f56fc01fc Don't clobber cwd in rpc_wallet_tests.cpp
86627fed8 Add missing libsnark initialization call
9b006ce9e libsnark: Don't (implicitly) rely on other tests initializing the public params
2d8ee6a68 Remove Checkpoints_tests.cpp
f9200ca9c Fix linkage issue with consts in primitives/block.h
5c4a47cbf Add actual header file for utilities in gtest/utils.cpp
4109ee36b Add missing #includes to test_block.cpp
0bab947bc Get rid of implicit hidden dependencies between test .cpp files
31436e437 Add assert_raises_message to the python test framework.
REVERT: 650d13dad Rename libzcashconsensus.la -> libzcash_script.la
REVERT: 128ba4b7b Rename zcashconsensus_* -> zcash_script_* in APIs
REVERT: 0368fb5d9 Rename src/script/zcashconsensus.* -> src/script/zcash_script.*
REVERT: e5300f875 Fixes after all the merged branches
REVERT: 60ad3752c prevector: Terminate without logging on failed allocation
REVERT: aa1567f86 Replace boost::optional with std::optional
REVERT: 25a225f94 Replace boost::variant with std::variant
REVERT: 6272d92b5 Remove init_and_check_sodium from crypto/common.h
REVERT: f6a5273e5 Remove JSDescription::h_sig
REVERT: 911dd2655 Add JSDescriptionInfo for constructing JSDescriptions
REVERT: 5575cdd8e Add amount and consensus branch ID to zcashconsensus_verify_script
REVERT: ad3b68cd4 Default to defining endian-conversion DECLs in compat w/o config
REVERT: 3aec16a84 Merge branch 'locked-memory-manager' into zcashconsensus-fixes-base
REVERT: e204c5c62 bench: Add benchmark for lockedpool allocation/deallocation
REVERT: 8056a23a5 rpc: Add `getmemoryinfo` call
REVERT: 572a58362 support: Add LockedPool
REVERT: bf3c73ea1 wallet: Get rid of LockObject and UnlockObject calls in key.h
REVERT: a49bd840a wallet: Change CCrypter to use vectors with secure allocator
REVERT: b181e6c0f [trivial] Switched constants to sizeof()
REVERT: 84bb6fe21 Merge branch 'c++17' into zcashconsensus-fixes-base
REVERT: 50ef461f3 Merge branch 'proofverifier-refactor' into zcashconsensus-fixes-base
REVERT: 622427d67 Remove crypto/equihash from libzcashconsensus
REVERT: e1a513220 Replace libsodium's crypto_generichash_blake2b with blake2b_simd
REVERT: 9514e4018 Replace libsodium's randombytes_buf with rand_core::OsRng::fill_bytes
REVERT: 3f3e9d2c7 depends: Build C++ dependencies with C++ 17
REVERT: 08b9c9976 build: Require and build with C++ 17
REVERT: ed9c9273d build: Update AX_CXX_COMPILE_STDCXX macro

git-subtree-dir: depend/zcash
git-subtree-split: d94fe7678b49dce57c8a71ffe44b28d5b57eddd6
2020-12-09 15:00:52 -08:00
Jane Lusby 848eb05d06
bump bindgen back to 0.54 for compatibility with rocksdb (#14)
* bump bindgen back to 0.54 for compatibility with rocksdb

* update changelog for new release

* (cargo-release) version 0.1.4

* (cargo-release) start next development iteration 0.1.5-alpha.0
2020-11-23 19:23:23 -08:00
Jane Lusby 55f1980ba0 New release to enable endomorphism optimization and switch to subtree (#13)
* (cargo-release) version 0.1.3

* (cargo-release) start next development iteration 0.1.4-alpha.0

* update changelog
2020-10-09 17:20:31 -07:00
str4d 0fa3d09629 Use the endomorphism optimization for secp256k1 (#10)
The relevant patents have now expired:
- US7110538B2 expired 2020-09-25.
- US7995752B2 expired 2020-09-15.

Co-authored-by: Jane Lusby <jlusby42@gmail.com>
2020-10-09 17:20:22 -07:00
Jane Lusby 85b79158de Remove top level Cargo.toml to allow publishing 2020-10-09 17:20:11 -07:00
Jane Lusby 294026b2a4 Squashed 'depend/zcash/' content from commit 650d13dad
git-subtree-dir: depend/zcash
git-subtree-split: 650d13dadc
2020-10-09 17:19:13 -07:00
Jane Lusby bdff22fc51 Merge commit '294026b2a41c3fa4ac9c7a93cfe00d834fe05f44' as 'depend/zcash' 2020-10-09 17:19:13 -07:00
Jane Lusby 86886c99f0 remove submodule 2020-10-09 13:49:39 -07:00
Dimitris Apostolou 9fa1d12ced
Fix typo (#11) 2020-10-05 11:09:14 -07:00
Jane Lusby 5a5cbe85f6
remove color-eyre from build dependencies (#9)
* remove color-eyre from build dependencies

* looks like we can remove this from the dev deps too

* (cargo-release) version 0.1.2-rc.1

* (cargo-release) version 0.1.2

* (cargo-release) start next development iteration 0.1.3-alpha.0
2020-09-21 16:01:37 -07:00
Jane Lusby 13762faf7e
fix issues with changelog (#8) 2020-09-15 18:37:37 -07:00
Jane Lusby 3505d64662
Merge pull request #7 from ZcashFoundation/rel
Create a new release and increment version for next development cycle.
2020-09-15 18:15:33 -07:00
Jane Lusby 91cc993062 (cargo-release) start next development iteration 0.1.2-alpha.0 2020-09-15 17:50:37 -07:00
Jane Lusby 29b6915388 increment version for new release 2020-09-15 17:13:06 -07:00
Jane Lusby 95acf44e83
update bindgen and cc deps (#6)
* update bindgen and cc deps

* try to get ci working

* add back old config and fix remote url

* i guess it actually was the config

* prep for releasing with cargo-release
2020-09-15 17:11:33 -07:00
Jane Lusby 8b69b996c8 Add description fields to cargo.toml 2020-08-13 17:04:25 -07:00
Jane Lusby dcde9a0b5b
merge zcash_script changes for final release (#3)
* initial working version on cc

* add basic actions automation

* checkout submodules

* don't require bindgen generation

* use newest zcash changes

* pause work on ripping out sodium

* push hacks to some version of the repo

* fix path in build.rs

* add job for testing different OSs

* str4d is the fucking greatest

* cleanup unused code

* remove symlink

* cleanup cruft

* remove old automation files

* Apply suggestions from code review

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>

* add failure case test

* always generate bindings

* install llvm dep on windows

* cleanup unused bindings

* try messing with CI

* use actual branch name

* use correct remote for gitmodules

* Update build.rs

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>

* rename to zcash_script

* cleanup last mentions

* Prepare zcash_script for release (#2)

* cleanup last mentions

* add files that need to be included

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>
2020-08-13 16:47:37 -07:00
Jane Lusby c2252b2a07
initial working version on cc (#1)
* initial working version on cc

* add basic actions automation

* checkout submodules

* don't require bindgen generation

* use newest zcash changes

* pause work on ripping out sodium

* push hacks to some version of the repo

* fix path in build.rs

* add job for testing different OSs

* str4d is the fucking greatest

* cleanup unused code

* remove symlink

* cleanup cruft

* remove old automation files

* Apply suggestions from code review

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>

* add failure case test

* always generate bindings

* install llvm dep on windows

* cleanup unused bindings

* try messing with CI

* use actual branch name

* use correct remote for gitmodules

* Update build.rs

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>

Co-authored-by: Saleem Rashid <dev@saleemrashid.com>
2020-07-22 14:02:44 -07:00
Steven Roose 20d5c11746
Merge pull request #14 from elichai/2020-01-bitcoin-0.19
Bump version to 0.19.0.1
2020-01-08 19:35:51 +00:00
Elichai Turkel e544eb242d
bump version to 0.19.0-1 2020-01-07 16:55:56 +02:00
Elichai Turkel 1972a1f612
Update bitcoin submodule to 0.19.0.1 2020-01-07 16:55:55 +02:00
Elichai Turkel 6c5cc47f90
Pin cc version to match rust-bitcoin/rust-secp256k1#156 2020-01-07 16:44:45 +02:00
Elichai Turkel 3e0009474b
Add a feature for external libsecp256k1 2020-01-07 16:41:21 +02:00
Elichai Turkel 300e3d2ae5
Fix cross compilation to windows in build.rs 2020-01-07 16:23:13 +02:00
Elichai Turkel 60e17c99da
Compile libsecp256k1 as part of bitcoin, not as a dependency 2020-01-07 16:22:37 +02:00
Elichai Turkel 32e432ff71
Move bitcoin into a depend directory 2020-01-07 16:07:05 +02:00
Tamas Blummer 6fa2f9e9d0 make secp256k1 a regular dependency 2019-08-02 22:11:02 +02:00
Jonas Nick df33c1a75f Relax cc dependency requirements, bump secp256k1 to 0.15 and bump version to 0.17.0 (#9)
* Relax cc dependency requirements, bump secp256k1 to 0.13 and bump version to 0.16.5

* Update travis and appveyor to use minimum rustc version 1.22.0 required by secp256k1 0.13

* Add WIN32 define for Windows target, remove endianness decls.

* Relax cc requirements, bump secp256k1 to 0.15 and bump version to 0.17.0
2019-07-27 09:12:54 +02:00
Tamas Blummer bc1039d517 bump version 2018-12-19 22:45:14 +01:00
Matt Corallo 3d69dfc431 Bump deps and pin cc (#7)
* Bump bitcoin dep to v0.17.1rc1 (which should be final this week)

* Fix cc dep as the rust ecosystem is terrible

* Move secp to a dev-dep and bump it
2018-12-19 22:32:34 +01:00
Matt Corallo 6b6c1b6043 Bump to Bitcoin Core 0.16.1 and bump deps (#5)
* Bump bitcoin to v0.16.1

* Bump deps and version for bitcoin update

* Fix badge links in README
2018-06-24 19:17:49 +02:00
Tamas Blummer 2121e233c0 windows build 2018-05-11 15:25:17 +02:00
Aleksey Sidorov 98b23bfb4e Implement build script for windows (#4)
* Implement build script for windows

* Add ci build for rust 1.14.0, disable parallel build

* Disable warnings about unused variables.
2018-05-11 15:19:05 +02:00
Tamás Blummer b68265a7e2
Update README.md 2018-04-09 13:36:06 +02:00