Commit Graph
100 Commits
Author SHA1 Message Date
Jack Grigg 9773b95f6e Coverage build system tweaks 2017-01-18 13:57:05 +01:00
Jack Grigg 9847bc870d Create empty zcash.conf during coverage checks
Fixes regression caused by #2013.
2017-01-18 12:11:50 +01:00
Jack Grigg 336fa63020 Create empty zcash.conf during performance measurements 2017-01-17 13:19:49 +01:00
Jack Grigg b50b4d5c38 Generate Debian control file to fix shlibs lint 2017-01-17 01:55:50 +01:00
Jack Grigg 6a62bff3e0 Debian package lint
- Tweak description synopsis to make Debian happy
- Put bash completion files in correct directory
- Add a manpage for zcash-fetch-params
2017-01-17 01:55:50 +01:00
Jack Grigg 5ae347827f Fix gtest ordering broken by #1949
Part of #1539
2017-01-16 20:16:29 +01:00
Jack Grigg 24f4e3365b Show a friendly message explaining why zcashd needs a zcash.conf 2017-01-11 12:55:35 +01:00
Jack Grigg d87f00c4d5 Throw an error if zcash.conf is missing
An empty zcash.conf is sufficient to bypass this error.
2017-01-10 16:33:41 +01:00
Jack Grigg 1c76501909 Rename build-aux/m4/bitcoin_find_bdb48.m4 to remove version
Closes #1622.
2017-01-09 18:54:08 +01:00
Jack Grigg 53e9a6a0e2 Update debug categories
Closes #1954.
2017-01-05 11:56:42 +01:00
Jack Grigg 0b0a48c881 Suggest ./zcutil/fetch-params.sh as well
Once we improve the from-source installation docs to use 'make install', we can
revert this commit.
2017-01-05 11:38:38 +01:00
Jack Grigg b6e439b261 Handle newlines in UI messages 2017-01-05 08:38:35 +01:00
Jack Grigg e698459ec8 Strip out the SECURE flag in metrics UI so message style is detected 2017-01-05 08:19:15 +01:00
Jack Grigg 83561c9cb3 Trigger metrics UI refresh on new messages 2017-01-05 08:18:29 +01:00
Jack Grigg bddf4079fd Instruct users to run zcash-fetch-params if network params aren't available
Closes #1786.
2017-01-04 17:58:07 +01:00
Jack Grigg 7e3a20f235 Scan the whole chain whenever a z-key is imported
Closes #1941.
2017-01-04 15:40:35 +01:00
Jack Grigg 8e0fc39097 Exclude test binaries from make install
Closes #1943.
2017-01-03 11:23:21 +01:00
Jack Grigg d0ce704abe Add a tool for profiling the creation of JoinSplits 2016-12-17 02:43:43 +13:00
Jack Grigg 6daab5b4fc Only run wallet tests when wallet is enabled 2016-12-16 10:52:37 +13:00
Jack Grigg f3e4968626 Only enable getblocktemplate when wallet is enabled 2016-12-16 10:44:04 +13:00
Jack Grigg 611f25b604 Release notes, authors, changelog 2016-12-15 16:47:49 +13:00
Jack Grigg 196df30d72 Update man pages 2016-12-15 16:45:18 +13:00
Jack Grigg 83ce8a4d7c Update version to 1.0.4 2016-12-15 16:33:09 +13:00
Jack Grigg 5d6e1aa60f Add total number of commitments to getblockchaininfo 2016-12-15 15:50:26 +13:00
Jack Grigg 41c616214c Update payment API docs to recommend -rescan for fixing witness errors 2016-12-15 14:30:40 +13:00
Jack Grigg 4082dcb10f Extend createjoinsplit to benchmark parallel JoinSplits
Closes #1940
2016-12-14 15:28:00 +13:00
Jack Grigg c0ec0e756b Fix bug in IncrementNoteWitness() 2016-12-13 22:53:52 +13:00
Jack Grigg 78f4e0ef37 Rewrite reindex test to check beyond the max witness cache size 2016-12-13 22:53:29 +13:00
Jack Grigg 0752d1f8c4 Extract block-generation wallet test code into a function 2016-12-13 22:53:11 +13:00
Jack Grigg 35ce717f96 Fix bug in wallet tests 2016-12-13 22:50:57 +13:00
Jack Grigg 6f78f4f44c Only check cache validity for witnesses being incremented or decremented
Fixes the bug resulting from #1904.
2016-12-13 09:34:55 +13:00
Jack Grigg 9d2cc3a784 Make the test pass by fixing the bug! 2016-12-10 00:56:32 +13:00
Jack Grigg eeee6d5d6c Add a reindex test that fails because of a bug in decrementing witness caches
Ref: https://github.com/zcash/zcash/pull/1904#issuecomment-265992988
2016-12-10 00:51:32 +13:00
Jack Grigg 6fb8d0c2d6 Skip JoinSplit verification before the last checkpoint
Part of #1749
2016-12-09 21:06:45 +13:00
Jack Grigg 9755eb8292 Add JS to second block to ensure witnesses are incremented 2016-12-09 16:59:40 +13:00
Jack Grigg 88b7f3c28b Generate JS for trydecryptnotes, make number of addresses a variable 2016-12-09 16:59:39 +13:00
Jack Grigg a513ea90d4 Fix indentation 2016-12-09 16:59:34 +13:00
Jack Grigg d85758f5cc Document behaviour of CWallet::SetBestChain 2016-12-07 19:30:30 +13:00
Jack Grigg 73546e1b81 Add Zcash RPC commands to CLI argument completion 2016-12-02 17:41:37 +13:00
Jack Grigg a01daac728 Always bash-complete the default account 2016-12-02 17:26:57 +13:00
Jack Grigg ca483b4064 Add bash completion files to Debian package 2016-12-02 17:12:38 +13:00
Jack Grigg 58966e96c5 Change function names to not clash with Bitcoin, apply to correct binaries 2016-12-02 17:09:44 +13:00
Jack Grigg 1c8d5c4061 Address review comments, tweak strings 2016-12-01 15:34:57 +13:00
Jack Grigg bebec25313 Add an upstream miniupnpc patch revision 2016-12-01 12:29:18 +13:00
Jack Grigg aefa70f948 Apply miniupnpc patches to enable compilation on Solaris 11
These can be removed after the next MiniUPnP release.

Closes #1835.
2016-12-01 01:12:59 +13:00
Jack Grigg 03f83b9b0d Write witness caches when writing the best block
For steady-state operation, this reduces the average time between wallet disk
writes from once per block to once per hour.

On -rescan, witness caches are only written out at the end along with the best
block, increasing speed while ensuring that on-disk state is kept consistent.

Witness caches are now never recreated during a -reindex, on the assumption that
the blocks themselves are not changing (the chain is just being reconstructed),
and so the witnesses will remain valid.

Part of #1749.
2016-11-30 14:04:37 +13:00
Jack Grigg e2752e1eca Increase length of metrics divider 2016-11-29 18:17:28 +13:00
Jack Grigg 18f656d2af Clarify that metrics options are only useful without -daemon and -printtoconsole 2016-11-29 18:11:25 +13:00
Jack Grigg 0076a80a8a Document metrics screen options 2016-11-18 16:49:37 +13:00
Jack Grigg 57724029da Only show metrics by default if stdout is a TTY 2016-11-18 16:37:10 +13:00
Jack Grigg 83ccbf6b89 Add -metricsrefreshtime option 2016-11-18 16:32:21 +13:00
Jack Grigg 3c02477360 Add -metricsui flag to toggle between persistent screen and rolling metrics
Defaults to true if stdout is a TTY, else false.
2016-11-18 16:17:59 +13:00
Jack Grigg 0bb3d40f90 Add benchmark for incrementing note witnesses 2016-11-17 22:26:46 +13:00
Jack Grigg 0fbab55b1b Add benchmark for attempting decryption of notes 2016-11-17 19:09:45 +13:00
Jack Grigg 000499ae64 Add getlocalsolps and getnetworksolps RPC calls, show them in getmininginfo 2016-11-16 22:02:49 +13:00
Jack Grigg a4ef3aa9b5 Clear witnessHeight and nWitnessCacheSize in ClearNoteWitnessCache 2016-11-15 17:53:41 +13:00
Jack Grigg ccfd8aae1d Add code comments about CNoteData::witnessHeight 2016-11-15 16:42:22 +13:00
Jack Grigg 4a6a48479d Copy over CNoteData::witnessHeight when updating wallet tx 2016-11-15 14:08:41 +13:00
Jack Grigg 40ef121e6a Correctly set CNoteData::witnessHeight when decrementing witness caches
Closes #1715
2016-11-15 14:08:35 +13:00
Jack Grigg 7a810efa08 Add --disable-tests flag to zcutils/build.sh
Closes #1787
2016-11-06 12:35:55 -08:00
Jack Grigg b7f3640dda Change execution order of gtests to avoid bug
This is only a workaround; we still need to isolate and fix the root cause.
2016-11-03 18:09:34 -05:00
Jack Grigg d873bd1d58 Revert "Initialise walletdb system in a temp dir for all gtests"
This reverts commit 74372eaa4c.
2016-11-03 18:04:28 -05:00
Jack Grigg 74372eaa4c Initialise walletdb system in a temp dir for all gtests 2016-11-03 15:42:44 -05:00
Jack Grigg 6b820113e9 Fix whitespace in Makefile.gtest.include 2016-11-02 17:43:37 -05:00
Jack Grigg e80490f5ff Fix gtest issue introduced into master 2016-11-02 16:45:38 -05:00
Jack Grigg 3bddaf632e Use uint64_t for AtomicCounter 2016-11-02 14:50:00 -05:00
Jack Grigg 33efd816ec Add build scripts and fetch-params.sh to "make install" and "make dist"
Closes #1728
2016-11-02 12:13:47 -05:00
Jack Grigg 73a439185d Ensure that no tracked blocks are skipped during orphan detection 2016-11-02 09:20:35 -05:00
Jack Grigg 22ee0efe25 Fix previous commit 2016-11-01 20:37:59 -05:00
Jack Grigg 548bbd95f0 Adjust consensus rule to accept genesis block without height in coinbase
Closes #1753
2016-11-01 19:58:56 -05:00
Jack Grigg cb7098317d Improve locking in metrics 2016-11-01 11:59:40 -05:00
Jack Grigg 24f1026689 Show mining info once the node has finished loading
Closes #1685
2016-10-30 16:54:05 -07:00
Jack Grigg eb5b582e1f Add network stats to metrics screen
Closes #1688
2016-10-30 16:38:09 -07:00
Jack Grigg 848c89cd67 Refresh mining status to detect setgenerate changes
Closes #1656
2016-10-30 16:38:07 -07:00
Jack Grigg d793f94b8a Track mined blocks to detect and report orphans and mining revenue
Part of #1713
Closes #1716
2016-10-30 16:37:44 -07:00
Jack Grigg ff5f66b847 Update Debian manpages and buildscript 2016-10-28 04:39:00 -07:00
Jack Grigg 409dcb7e1d Update Debian changelog 2016-10-28 04:12:29 -07:00
Jack Grigg 7232f2f787 Add release notes for 1.0.0
The Debian build script has been modified to account for the version
discrepancy.
2016-10-28 04:12:27 -07:00
Jack Grigg 998202ba20 Update version strings to 1.0.0
Debian uses 1.0.0-sprout to ensure correct ordering.
2016-10-28 04:12:20 -07:00
Jack Grigg 657bde55ef Update tests for new genesis blocks
Miner tests have been commented out, and will be regenerated after launch.
2016-10-28 02:56:15 -07:00
Jack Grigg 30ed379109 Add the Zcash genesis blocks
Closes #1554
2016-10-28 02:55:43 -07:00
Jack Grigg d35172fb67 Disable the metrics screen on regtest 2016-10-27 19:41:10 -07:00
Jack Grigg da7bcff4fe Build libsnark with -march=x86-64 instead of -march=native 2016-10-27 16:32:27 -07:00
Jack Grigg 31cc0d0861 Fix DEBIAN/control errors raised by lintian 2016-10-27 08:45:16 -07:00
Jack Grigg acb8bbe4fe Add lintian check to zcutil/build-debian-package.sh 2016-10-27 08:44:44 -07:00
Jack Grigg b7f7def877 Rework zcutil/build-debian-package.sh to place files correctly
See http://www.tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/
for a guide on how to prepare a distribution for using dpkg-deb.
2016-10-27 08:44:24 -07:00
Jack Grigg ab32254909 Update tests for new genesis blocks 2016-10-27 02:45:21 -07:00
Jack Grigg 2360dd6449 Regenerate mainnet and testnet genesis blocks for nMaxTipAge change
The regtest genesis block is unchanged because the RPC test framework has an
unspecified dependency on its specific value of nTime.
2016-10-27 02:43:16 -07:00
Jack Grigg 2f5d62fe32 Remove Founders' Reward override from #1398 2016-10-26 21:05:17 -07:00
Jack Grigg 9f15b823ac Integrate production Founders' Reward keys
Closes #870
2016-10-26 21:05:17 -07:00
Jack Grigg 9e044e509e Link to #826 in doc/security-warnings.md, link to new Security website page
Closes #826
2016-10-25 15:41:36 -07:00
Jack Grigg dfe29d5988 Disable metrics screen in performance-measurements.sh 2016-10-23 20:41:18 -05:00
Jack Grigg dccc140bf1 Comment out print statements in tromp's solver
This prevents the solver interfering with the metrics screen.
2016-10-22 15:59:44 -05:00
Jack Grigg 199b3aafd3 Use solutions per second (Sol/s)
Part of #1422
2016-10-22 15:50:23 -05:00
Jack Grigg f8ada2435b Be excited about validating transactions! 2016-10-22 15:50:21 -05:00
Jack Grigg e7d59bbc12 Add average hash rate to metrics 2016-10-22 15:50:20 -05:00
Jack Grigg db853f8a46 Handle wrapping of potentially long lines 2016-10-22 15:50:18 -05:00
Jack Grigg 0ddd6d1cd8 Tag metrics strings for translation 2016-10-22 15:50:17 -05:00
Jack Grigg d30273f919 Split out screen sections into separate functions 2016-10-22 15:50:16 -05:00
Jack Grigg 4482bd8fd7 Adjust copy 2016-10-22 15:50:14 -05:00