Commit Graph
100 Commits
Author SHA1 Message Date
Jack Grigg e365ca1c53 Remove nSproutValue TODO from CDiskBlockIndex
Block indices are flushed to disk when they are marked as dirty, and this
happens via enough distinct pathways that it would be sufficiently complex to
update nSproutValue via all of them. Thus it is necessary to be able to
serialize "no value" for writes by upgraded clients.
2017-12-16 10:01:26 +00:00
Jack Grigg 9d0c70e9e7 Clarify operator precedence in serialization of nSproutValue 2017-12-15 18:36:05 +00:00
Jack Grigg 0100c79405 Add Rust and Proton to configure options printout 2017-12-15 13:03:33 +00:00
Jack Grigg d66bf190cb Apply -fstack-protector-all to libsnark 2017-12-15 10:02:54 +00:00
Jack Grigg e319633435 Add Sprout value pool to getblock and getblockchaininfo 2017-12-14 22:06:15 +00:00
Jack Grigg ad6a36ad02 Track net value entering and exiting the Sprout circuit
Delta values will be stored for new blocks; old blocks can be filled in by
re-indexing. The net value currently in the Sprout circuit is only calculated
when delta values for all previous blocks are present.
2017-12-14 22:06:11 +00:00
Jack Grigg 704337b2b8 Move Zcash flags into configure.ac 2017-12-01 14:10:18 +00:00
Jack Grigg c1fcdd01dd Change --enable-werror to apply to all warnings, use it in build.sh 2017-12-01 14:10:18 +00:00
Jack Grigg ad96d74afe build: Split hardening/fPIE options out in Zcash-specific binaries 2017-12-01 14:10:11 +00:00
Jack Grigg c6b39fbbd6 Include endian-ness compatibility layer in Equihash implementation 2017-11-29 17:28:44 +00:00
Jack Grigg d3096198c8 [libsnark] Use POSIX-compliant ar arguments 2017-11-29 17:28:44 +00:00
Jack Grigg daad2c2736 Check if OpenMP is available before using it 2017-11-29 17:28:44 +00:00
Jack Grigg 9635679cba Replace "install -D" with "mkdir -p && install" 2017-11-29 17:26:47 +00:00
Jack Grigg c16188cc6d Remove manual -std=c++11 flag
This is handled by autoconf now.
2017-11-29 17:24:59 +00:00
Jack Grigg e4cd341260 Replace hard-coded defaults for HOST and BUILD with config.guess 2017-11-29 15:25:14 +00:00
Jack Grigg 7fa05b29b6 Use g-prefixed coreutils commands if they are available
If they are present on the system, it means that the non-prefixed ones are not
necessarily the versions we want, while the prefixed ones are highly likely to
be the ones from GNU Coreutils.
2017-11-29 15:24:21 +00:00
Jack Grigg 7a448d3fa5 Bump secp256k1 subtree 2017-11-28 16:43:13 +00:00
Jack Grigg cde23ac085 Squashed 'src/secp256k1/' changes from 84973d3..6ad5cdb
6ad5cdb Merge #479: Get rid of reserved _t in type names
d1dc9df Get rid of reserved _t in type names
0b70241 Merge #474: Fix header guards using reserved identifiers
ab1f89f Merge #478: Fixed multiple typos
8c7ea22 Fixed multiple typos
abe2d3e Fix header guards using reserved identifiers
f532bdc Merge #459: Add pubkey prefix constants to include/secp256k1.h
cac7c55 Merge #470: Fix wnaf_const documentation
768514b Fix wnaf_const documentation with respect to return value and number of words set
b8c26a3 Merge #458: Fix typo in API documentation
817fb20 Merge #440: Fix typos
12230f9 Merge #468: Remove redundant conditional expression
2e1ccdc Remove redundant conditional expression
bc61b91 add pubkey prefix constants to include/secp256k1.h
b0452e6 Fix typo in API documentation
4c0f32e Fix typo: "Agressive" → "Aggressive"
73aca83 Fix typo: "exectured" → "executed"

git-subtree-dir: src/secp256k1
git-subtree-split: 6ad5cdb42a1a8257289a0423d644dcbdeab0f83c
2017-11-28 16:42:12 +00:00
Jack Grigg 4b9eb663bf make-release.py: Updated release notes and changelog for 1.0.13. 2017-11-20 12:31:53 +00:00
Jack Grigg 404de74fc6 make-release.py: Updated manpages for 1.0.13. 2017-11-20 12:31:33 +00:00
Jack Grigg 0523d21d22 make-release.py: Versioning changes for 1.0.13. 2017-11-20 12:23:45 +00:00
Jack Grigg 48ea914cd0 make-release.py: Updated release notes and changelog for 1.0.13-rc2. 2017-11-17 18:01:08 +00:00
Jack Grigg 562b55bec1 make-release.py: Updated manpages for 1.0.13-rc2. 2017-11-17 18:00:32 +00:00
Jack Grigg e70c8d2ea3 make-release.py: Versioning changes for 1.0.13-rc2. 2017-11-17 17:49:28 +00:00
Jack Grigg 051698a05c Add the tar-pax option to automake
This enables the tarball generated by "make dist" to contain file names longer
than 99 characters.
2017-11-16 22:37:38 +00:00
Jack Grigg fee8835388 Mark libsnark includes as library includes 2017-11-15 16:49:10 +00:00
Jack Grigg 8f23c734e6 Pass correct dependencies path to libsnark from both Gitian and build.sh 2017-11-15 15:30:21 +00:00
Jack Grigg 83bef3fcbe Move libsnark from DIST_SUBDIRS into EXTRA_DIST 2017-11-15 11:10:19 +00:00
Jack Grigg 66a9fd8b72 Change auto-senescence cycle to 16 weeks
Closes #2686
2017-11-15 00:37:02 +00:00
Jack Grigg cbd823ae59 make-release.py: Updated release notes and changelog for 1.0.13-rc1. 2017-11-15 00:02:21 +00:00
Jack Grigg 563f13cd93 make-release.py: Updated manpages for 1.0.13-rc1. 2017-11-15 00:02:07 +00:00
Jack Grigg c5b04132bd make-release.py: Versioning changes for 1.0.13-rc1. 2017-11-14 23:53:45 +00:00
Jack Grigg bef1b5ce1b Fix NPE in rpc_wallet_tests 2017-11-05 12:02:21 -05:00
Jack Grigg 692bf7a6df Add --list-stages argument to full_test_suite.py 2017-10-18 00:56:32 -07:00
Jack Grigg 91dd425b4a Add libsnark tests to full_test_suite.py 2017-10-18 00:55:52 -07:00
Jack Grigg d43b32bbfe Remove OpenSSL libraries from libsnark LDLIBS
Unnecessary in the Zcash libsnark fork.
2017-10-17 20:33:28 -07:00
Jack Grigg 99ca5e1a22 Ensure that libsnark is built first, so its headers are available 2017-10-17 19:04:38 -07:00
Jack Grigg e2283742db Add libsnark to "make clean" 2017-10-17 19:03:41 -07:00
Jack Grigg 6e98511cf1 Add stdout notice if any stage fails 2017-10-16 16:16:14 -04:00
Jack Grigg 88fbdc4868 Add bitcoin-util-test.py to full_test_suite.py
Not moved, because upstream makes improvements to this script, and the need to
set environment variables makes it simpler to just use the given script.
2017-10-16 16:15:10 -04:00
Jack Grigg 8598c20d40 Changes to get test_r1cs_ppzksnark passing 2017-10-11 21:15:49 +01:00
Jack Grigg 82e839e4ff Add "make libsnark-tests" that runs libsnark's "make check" 2017-10-11 15:22:24 +01:00
Jack Grigg 19f6668c27 Add "make check" to libsnark that runs the Google Tests 2017-10-11 15:21:44 +01:00
Jack Grigg 638e742f3f Update libsnark LDLIBS
-lsodium is necessary as we altered libsnark to use libsodium's RNG.
2017-10-11 15:19:33 +01:00
Jack Grigg 4699d0eb36 Add alt_bn128 to QAP and Merkle tree gadget tests 2017-10-11 15:18:01 +01:00
Jack Grigg df3083fe4e Remove test code corresponding to removed code 2017-10-11 14:59:51 +01:00
Jack Grigg 054ae60645 Migrate libsnark test code to Google Test 2017-10-11 14:54:42 +01:00
Jack Grigg 94790c5d8f Add memory benchmark for validatelargetx 2017-10-09 22:18:28 +01:00
Jack Grigg c6af0aa453 Move check-security-hardening.sh into full_test_suite.py 2017-10-06 11:17:45 +01:00
Jack Grigg 105b2b6248 Move ensure-no-dot-so-in-depends.py into full_test_suite.py 2017-10-06 11:17:45 +01:00
Jack Grigg aadf3aa159 Replace full-test-suite.sh with a new test suite driver script
This will be the canonical location for the entire Zcash merge test suite.
2017-10-06 11:17:11 +01:00
Jack Grigg f8ef223ce3 Un-indent RPC test output in test runner
The indentation caused the test stdout to be buffered and only printed at the
end of the test, which makes it harder to diagnose hanging tests.
2017-10-05 15:18:58 +01:00
Jack Grigg 5455ca0d0e Fix BIP65 and BIP66 tests
Blocks were being created that didn't satisfy the regtest consensus rules.
2017-10-05 15:18:54 +01:00
Jack Grigg c10c40779d [Test] MiniNode: Implement Zcash coinbase 2017-10-05 15:18:53 +01:00
Jack Grigg 7596a4922d [Test] MiniNode: Coerce OP_PUSHDATA bytearrays to bytes
If a bytearray is passed in as part of an iterable, the CScript constructor
fails because b''.join() cannot be used to join a bytearray to a bytes or str in
Python 2.
2017-10-05 15:18:31 +01:00
Jack Grigg 643235859a [Test] MiniNode: Fix coinbase creation
CScriptNum is only used for heights > 16.
2017-10-05 15:18:27 +01:00
Jack Grigg e68c3ec188 [Test] MiniNode: Use Zcash PoW
Equihash solver code extracted from https://github.com/str4d/zcash-pow

RPC tests now require pyblake2 to be installed
2017-10-05 15:15:10 +01:00
Jack Grigg 0de9a481ab [Test] MiniNode: Update protocol version and network magics 2017-10-05 15:15:10 +01:00
Jack Grigg 31bc3d2581 [Test] MiniNode: Implement Zcash block parsing 2017-10-05 15:15:10 +01:00
Jack Grigg c47dc872a7 [Test] MiniNode: Implement v2 CTransaction parsing 2017-10-05 15:15:10 +01:00
Jack Grigg 13ca1e8011 [Test] MiniNode: Implement JSDescription parsing 2017-10-05 15:15:06 +01:00
Jack Grigg 99dd50c30c Add benchmark for listunspent
Closes #2645.
2017-10-04 12:48:50 +01:00
Jack Grigg 243b6a9d4b Add connections in BIP65 and BIP66 tests to the test manager
Fixes a bug in the tests causing them to silently pass instead of correctly
reporting other errors. Introduced in 4a785b0a5b
during the test rewrites.
2017-10-03 17:41:37 +01:00
Jack Grigg 2c016e06c7 Add Ansible playbook for grind workers 2017-10-02 21:37:13 +01:00
Jack Grigg 8988766730 make-release.py: Updated release notes and changelog for 1.0.12. 2017-09-28 01:26:44 +01:00
Jack Grigg eb6d25e7ab make-release.py: Updated manpages for 1.0.12. 2017-09-28 01:24:59 +01:00
Jack Grigg 0f49863acb make-release.py: Versioning changes for 1.0.12. 2017-09-28 01:17:05 +01:00
Jack Grigg 091c089d03 Fix incorrect failure in memory benchmark 2017-09-27 19:42:39 +01:00
Jack Grigg 72b4f0b3e6 Individualise performance-measurements.sh errors for debugging 2017-09-27 19:41:54 +01:00
Jack Grigg f897e075c2 Fix pyflakes warnings in RPC tests 2017-09-27 17:24:19 +01:00
Jack Grigg 29a2ee4958 make-release.py: Updated release notes and changelog for 1.0.12-rc1. 2017-09-23 10:51:36 +01:00
Jack Grigg 94183b6360 make-release.py: Updated manpages for 1.0.12-rc1. 2017-09-23 10:50:00 +01:00
Jack Grigg 39cb7df909 make-release.py: Versioning changes for 1.0.12-rc1. 2017-09-23 10:42:23 +01:00
Jack Grigg 109fed51ff Additional test cases for importprivkey RPC test 2017-09-21 22:21:44 +01:00
Jack Grigg 53e1e64d44 List dependencies for release script in release process doc 2017-09-19 22:32:59 +01:00
Jack Grigg fd5724eca7 make-release.py: Send stderr to stdout 2017-09-18 10:45:03 +01:00
Jack Grigg 200ef16950 Update user guide translations as part of release process
Part of #2596.
2017-09-18 08:34:34 +01:00
Jack Grigg de3e143461 Clarify branching and force-building operations in hotfix process 2017-09-15 10:52:51 +01:00
Jack Grigg 99b7cfb3a2 Add GitHub release notes to release process
Closes #2262.
2017-09-12 12:05:02 +01:00
Jack Grigg e719bf75d4 Adjust instructions for UTXO dataset creation
--nocleanup is sufficient to leave the data directories behind. --noshutdown is
only useful if you want to inspect the nodes afterwards, and you'd need to
manually shut down both nodes before copying the data directories.
2017-09-11 21:53:35 +01:00
Jack Grigg d669871e8b Fix bug in benchmark data generation script 2017-09-06 19:52:35 +01:00
Jack Grigg a76174b76b Benchmark time to call sendtoaddress with many UTXOs 2017-08-31 02:15:06 +01:00
Jack Grigg 24bfc7c6c6 Enforce sequential hotfix versioning 2017-08-31 02:05:07 +01:00
Jack Grigg df3005f955 Document the hotfix release process 2017-08-31 02:04:49 +01:00
Jack Grigg 869c9f91c4 Add hotfix support to release script 2017-08-30 13:02:50 +01:00
Jack Grigg d9d33a4b78 Add build progress to the release script if progressbar module is available
Install progressbar2 in your Python path to see the build progress.
2017-08-15 13:45:06 +01:00
Jack Grigg 71629a3c0b make-release.py: Updated release notes and changelog for 1.0.11. 2017-08-15 10:06:25 +01:00
Jack Grigg d8e7bdd6cd make-release.py: Updated manpages for 1.0.11. 2017-08-15 10:06:08 +01:00
Jack Grigg 2fd43c599f make-release.py: Versioning changes for 1.0.11. 2017-08-15 09:52:36 +01:00
Jack Grigg bac53a2c1d ci-workers: Variable overrides and process tweaks for CentOS 7
Part of #2510
2017-08-10 00:00:21 +02:00
Jack Grigg 2e839df328 ci-workers: Fail if Python is not version 2.7
Ansible works with Python 2.6 and 2.7, but Buildbot requires 2.7. Both have
at least preliminary Python 3 support, but until our RPC tests are migrated to
Python 3, we need to use Python 2 for testing, and so this requirement stands.
2017-08-08 00:19:23 +01:00
Jack Grigg 6dec2d0355 Rationalize currency unit to "ZEC" 2017-08-03 18:49:04 +01:00
Jack Grigg 30cc2b846e Variable overrides for Arch Linux
Part of #2550
2017-08-03 14:36:51 +01:00
Jack Grigg 24d98cece0 Add libsnark compile flag to not copy DEPINST to PREFIX
This is useful for Zcash, where DEPINST is its depends folder, not libsnark's
internal dependency folder.
2017-08-02 15:53:51 +01:00
Jack Grigg a06446408c Merge commit '51e448641d6cbcd582afa22cd8475f8c3086dad7' as 'src/snark' 2017-08-02 11:17:32 +01:00
Jack Grigg 51e448641d Squashed 'src/snark/' content from commit 9ada3f8
git-subtree-dir: src/snark
git-subtree-split: 9ada3f84ab484c57b2247c2f41091fd6a0916573
2017-08-02 11:17:25 +01:00
Jack Grigg 8ebb299d40 ci-workers: Enable pipelining, and use root to set admin and host details
Workarounds for Ansible issues when becoming an unprivileged user:
https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
2017-08-01 12:35:58 +01:00
Jack Grigg 92bfde0edf Improve network height estimation 2017-07-28 10:50:07 +00:00
Jack Grigg 4a651837be Correct and extend EstimateNetHeightInner tests
Corrections are to the median block times, which were generated by subtracting
CBlockIndex::nMedianTimeSpan / 2 from the block height and then multiplying by
the target spacing. GetMedianTimePast() takes an array sorted by std::sort() and
returns element CBlockIndex::nMedianTimeSpan / 2, meaning that if
CBlockIndex::nMedianTimeSpan is odd (which it is), there is an out-by-one error
in the subtraction.
2017-07-28 10:45:44 +00:00
Jack Grigg 047aec1e0e Add block download progress to metrics UI 2017-07-26 00:51:12 +00:00