Commit Graph

6728 Commits

Author SHA1 Message Date
Sean Bowe
eb2e2b7043 1.0.1 release. 2016-11-03 22:26:15 -06: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
zkbot
11c9be9eff Auto merge of #1735 - str4d:metrics-screen-improvements, r=str4d
Metrics screen improvements

Closes #1656, #1685, #1688 and #1716
2016-11-03 14:55:04 +00:00
zkbot
9eb852edd0 Auto merge of #1718 - ebfull:valid-fee-selection, r=nathan-at-least
Properly account for JoinSplit value when deciding if a transaction should be placed in a mined block.

Closes #1705.

The transaction selection logic in miner.cpp was not updated to account for JoinSplit value. This caused issues that include, but are not limited to, miners not including pure JoinSplit transactions in their blocks.
2016-11-03 04:38:54 +00: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
zkbot
51a5737950 Auto merge of #1754 - str4d:1753-genesis-block-coinbase-height-exception, r=str4d
Adjust consensus rule to accept genesis block without height in coinbase

Closes #1753
2016-11-02 18:15:39 +00:00
zkbot
624b5f390a Auto merge of #1752 - ebfull:diagnostics-of-constraint-system-violations, r=ebfull
Throw more descriptive exceptions when the constraint system is violated

Closes #1668.
2016-11-02 17:30:31 +00: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
zkbot
77dcb00d0e Auto merge of #1748 - bitcartel:master_1746_add_z_validateaddress, r=ebfull
Add rpc call z_validateaddress to validate zaddrs.

Closes #1746.
2016-11-01 20:56:26 +00:00
Sean Bowe
c4643bd949 Throw more descriptive exceptions when the constraint system is violated. 2016-11-01 14:52:03 -06:00
Jack Grigg
cb7098317d Improve locking in metrics 2016-11-01 11:59:40 -05:00
Sean Bowe
73363c3d9a Add checkpoint at block 2500. 2016-11-01 09:16:51 -06:00
Simon
4e16a7249c Closes #1746. Add rpc call z_validateaddress to validate zaddrs. 2016-10-31 20:05:48 -07: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
Sean Bowe
2b2bc69e8c Properly account for joinsplit value when deciding if a transaction should be placed in a mined block. 2016-10-29 11:53:16 -06:00
Zcash Company
1feaefac51 Update network magics for 1.0.0 ⓩ❤ 2016-10-28 14:32:25 +00: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
Daira Hopwood
3a334bedd2 Update version numbers for 1.0.0-rc4.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-10-27 13:47:53 +01:00
Daira Hopwood
c5eba1812b Update pchMessageStart for mainnet and testnet.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-10-27 13:47:53 +01: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
zkbot
278439fbe3 Auto merge of #1623 - ebfull:sprout-params, r=str4d
Zcash zk-SNARK public parameters for 1.0 "Sprout".

Created in the ceremony this weekend! 🎉

We're writing a blog post about this, I'm going to publish the code shortly too.

Closes #1553
2016-10-27 03:08:10 +00:00
zkbot
8f30c50751 Auto merge of #1660 - daira:1641.release-rc3, r=str4d
1641.release rc3

Release 1.0.0-rc3. This also includes the DNS seed updates for mainnet, and removing the testnet override of nMaxTipAge. closes #1369
2016-10-26 23:17:34 +00:00
Daira Hopwood
1eee125bfc Update version numbers for rc3.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-10-26 23:52:25 +01:00
Daira Hopwood
5551db8822 Remove the override of nMaxTipAge that effectively disables it on testnet.
This is relevant to #1609 because it hid the bug, but does not fix that
issue; the fix is to regenerate the genesis blocks.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-10-26 23:52:25 +01:00
Daira Hopwood
3483696bed Update dnsseeds for mainnet. closes #1369
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2016-10-26 23:08:30 +01:00
zkbot
dcea8593c8 Auto merge of #1655 - ebfull:fix-bitcoin-strings, r=daira
Change some Bitcoin strings to Zcash strings.

This addresses most of the user-facing ones (in help messages for example), thread names, but avoids things like tests and datastructure names.

**I slopped this together in a rush. Review it carefully!**
2016-10-26 17:50:17 -04:00
Sean Bowe
7662d72bf4 Make more string changes. 2016-10-26 13:57:22 -06:00
Sean Bowe
58c4c0bba3 Change some Bitcoin strings to Zcash strings. 2016-10-26 13:29:05 -06:00
Simon
55d4f13bb7 Bump version number in sendalert.cpp 2016-10-26 12:00:43 -07:00
zkbot
6bad499c2a Auto merge of #1640 - daira:upstream-update-tinyformat, r=daira
util: Update tinyformat

Updates `tinyformat.h` to commit
3a33bbf654 upstream.

Makes sure that our local changes are kept:

- bitcoin/bitcoin#3767 1b8fd35aad Make tinyformat errors raise an exception instead of assert()ing
- bitcoin/bitcoin#4735 9b6d4c5cdc Move strprintf define to tinyformat.h
- bitcoin/bitcoin#4748 6e5fd003e0 include stdexcept (for std::exception)
- bitcoin/bitcoin#8000 9eaa0afa6ec5d3dd01e4d01121314ef51f2bc305 force USE_VARIADIC_TEMPLATES
- Add `std::string format(const std::string &fmt...` added this
  at the time, as we want to be able to do `strprintf(_(...), ...)`

Inspired by bitcoin/bitcoin#8264.

For Zcash: ref #1349
2016-10-25 18:29:45 -04:00
zkbot
489f1d38ee Auto merge of #1629 - bitcartel:1616_wallet_disallow_coinbase_change, r=daira
Add z_sendmany rule that when coinbase utxos must be spent in their entirety, with no change

See #1616 - coinbase utxos must be consumed entirely, without any change, since there
is currently no way to specify a change address in z_sendmany.
2016-10-25 15:40:36 -04:00
zkbot
a1f81867f0 Auto merge of #1620 - bitcartel:1616_z_sendmany_need_0_message_bug, r=bitcartel
Fix incorrect error message in z_sendmany

Fixes one of the problems in #1616.
2016-10-25 15:02:29 -04:00
Daira Hopwood
c5b9bd9cad util: Update tinyformat
Updates `tinyformat.h` to commit
3a33bbf654 upstream.

Makes sure that our local changes are kept:

- #3767 1b8fd35aad Make tinyformat errors raise an exception instead of assert()ing
- #4735 9b6d4c5cdc Move strprintf define to tinyformat.h
- #4748 6e5fd003e0 include stdexcept (for std::exception)
- #8000 9eaa0afa6ec5d3dd01e4d01121314ef51f2bc305 force USE_VARIADIC_TEMPLATES
- Add `std::string format(const std::string &fmt...` added this
  at the time, as we want to be able to do `strprintf(_(...), ...)`

Inspired by #8264.
2016-10-25 19:48:38 +01:00
Simon
ad0ba9467d Add assert to AsyncRPCOperation_sendmany 2016-10-25 11:25:05 -07:00
zkbot
511c5ec1d0 Auto merge of #1615 - arithmetric:1612.fix-floating-point-exception, r=daira
Fixing floating point exception in non-TTY environments

As reported in #1612, a floating point exception occurs when zcashd is started with `showmetrics` enabled in environments without a TTY, such as when started as a service or piped to a file.

The root cause is that the metrics code attempts to get the screen width and uses this as a divisor in calculations. For non-TTY environments, this value is 0, leading to a division by zero error.

This PR adds a default screen width of 80 and uses the actual screen width only if the width can be fetched (and in a TTY environment).
2016-10-25 11:43:28 -04:00