Jack Grigg
0025fb4b0e
Merge commit 'a4071034f6ad640ef91057fa3f45098c4933f444' as 'src/univalue'
2017-02-10 02:18:46 +00:00
Jack Grigg
a4071034f6
Squashed 'src/univalue/' content from commit 9ef5b78
...
git-subtree-dir: src/univalue
git-subtree-split: 9ef5b78c1998509b8f1ccd76f0aee15140e384be
2017-02-10 02:18:44 +00:00
Jack Grigg
02972a1bcd
[cleanup] Simplify test code
2017-02-10 00:53:15 +00:00
Jack Grigg
873c40365a
[cleanup] Remove unused import
2017-02-10 00:53:14 +00:00
Jack Grigg
cc71666a51
unsigned int -> size_t for comparing with UniValue.size()
2017-02-10 00:53:13 +00:00
Jack Grigg
0821ddb0de
Remove JSON Spirit from contrib/debian/copyright
2017-02-10 00:53:11 +00:00
Jack Grigg
5fb326d41d
Manually iterate over UniValue arrays in tests
2017-02-10 00:53:09 +00:00
Jack Grigg
0d37ae3a59
Migrate Zcash-specific code to UniValue
2017-02-10 00:52:57 +00:00
Jack Grigg
b8eb37757b
Require -experimentalmode for wallet encryption
2017-02-09 22:10:58 +00:00
Jack Grigg
1f015f6afa
Add a flag for enabling experimental features
2017-02-09 22:10:58 +00:00
Jack Grigg
8db0dd93e4
Add test to check for presence of vpub_old & vpub_new in getrawtransaction
2017-02-09 16:38:01 +00:00
Jack Grigg
f49bcdf92b
Add -minetolocalwallet flag, enforced on -mineraddress
2017-02-08 23:37:45 +00:00
Jack Grigg
edcec148a8
Bump suggested ZMQ Debian package to 4.1 series
2017-02-08 22:18:48 +00:00
Jack Grigg
7c8845edda
Clarify that user only needs libzmq if not using depends system
2017-02-08 22:18:17 +00:00
Jack Grigg
602407de95
[depends] ZeroMQ 4.2.1
2017-02-08 22:11:53 +00:00
Jack Grigg
05e6ead8da
Add ZeroMQ license to contrib/debian/copyright
2017-02-08 22:11:53 +00:00
Jack Grigg
4fbc46c2ff
Bitcoin -> Zcash in ZMQ docs
2017-02-08 22:11:53 +00:00
Jack Grigg
c7cb3c13ea
[qa] py2: Unfiddle strings into bytes explicitly in ZMQ RPC test
...
Extracted from bitcoin/bitcoin#7853
commit faa41ee204124da19dcf1e5b8a3aef1e216bf5e6
2017-02-08 22:11:53 +00:00
Jack Grigg
a9445db62f
Fix python syntax in ZMQ RPC test
...
Extracted from bitcoin/bitcoin#7335
commit 7777994846cdb9b9cf69e391a33eeed30393bbcf
2017-02-08 22:11:53 +00:00
Jack Grigg
8b99caa3e6
Add ZMQ libs to zcash-gtest
2017-02-08 22:10:42 +00:00
Jack Grigg
c1de826f10
Correct #ifdef nesting of miner headers and helper functions
2017-02-06 11:55:06 +00:00
Jack Grigg
78ba3472d2
Update help text for mining options
2017-02-06 11:55:05 +00:00
Jack Grigg
8e8b6d701b
Switch miner to P2PKH, add -mineraddress option
...
Closes #945 and #1955 .
2017-02-06 11:54:58 +00:00
Jack Grigg
51fde9ea08
Use a more specific exception class for note decryption failure
...
Closes #1545 .
2017-01-31 23:05:19 +01:00
Jack Grigg
6d0ab3ee59
Show all JoinSplit components in getrawtransaction and decoderawtransaction
...
Closes #2030
2017-01-31 21:32:19 +01:00
Jack Grigg
18cc8f45fd
Upgrade OpenSSL to 1.1.0d
...
Closes #2047
2017-01-31 15:23:56 +01:00
Jack Grigg
2cc0a252ad
Add compile flag to disable compilation of mining code
2017-01-30 21:14:46 +01:00
Jack Grigg
475233553b
Fix linking error in CreateJoinSplit
2017-01-23 18:29:22 +01:00
Jack Grigg
bf6a138304
Address review comments
2017-01-23 17:06:54 +01:00
Jack Grigg
207924a1d5
Remove OpenSSL PRNG reseeding
...
Per https://download.libsodium.org/doc/generating_random_data/ reseeding the
default libsodium PRNG is not required.
2017-01-23 17:06:54 +01:00
Jack Grigg
13124da0b6
Update comment
2017-01-23 17:06:54 +01:00
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