]> Git Repo - VerusCoin.git/log
VerusCoin.git
7 years agoRemove libsnark from depends system and integrate it into build system.
Sean Bowe [Mon, 10 Apr 2017 20:25:04 +0000 (14:25 -0600)]
Remove libsnark from depends system and integrate it into build system.

7 years agoMerge commit '51e448641d6cbcd582afa22cd8475f8c3086dad7' as 'src/snark'
Jack Grigg [Wed, 2 Aug 2017 10:17:32 +0000 (11:17 +0100)]
Merge commit '51e448641d6cbcd582afa22cd8475f8c3086dad7' as 'src/snark'

7 years agoSquashed 'src/snark/' content from commit 9ada3f8
Jack Grigg [Wed, 2 Aug 2017 10:17:25 +0000 (11:17 +0100)]
Squashed 'src/snark/' content from commit 9ada3f8

git-subtree-dir: src/snark
git-subtree-split: 9ada3f84ab484c57b2247c2f41091fd6a0916573

7 years agoAuto merge of #2562 - arielgabizon:release-v1.0.11-rc1, r=daira
Homu [Tue, 1 Aug 2017 19:37:26 +0000 (12:37 -0700)]
Auto merge of #2562 - arielgabizon:release-v1.0.11-rc1, r=daira

Release v1.0.11 rc1

7 years agomake-release.py: Updated release notes and changelog for 1.0.11-rc1.
Ariel Gabizon [Tue, 1 Aug 2017 15:12:52 +0000 (17:12 +0200)]
make-release.py: Updated release notes and changelog for 1.0.11-rc1.

7 years agomake-release.py: Updated manpages for 1.0.11-rc1.
Ariel Gabizon [Tue, 1 Aug 2017 15:12:50 +0000 (17:12 +0200)]
make-release.py: Updated manpages for 1.0.11-rc1.

7 years agomake-release.py: Versioning changes for 1.0.11-rc1.
Ariel Gabizon [Tue, 1 Aug 2017 15:11:57 +0000 (17:11 +0200)]
make-release.py: Versioning changes for 1.0.11-rc1.

7 years agoAuto merge of #2484 - str4d:block-download-completion, r=daira
Homu [Sat, 29 Jul 2017 04:57:19 +0000 (21:57 -0700)]
Auto merge of #2484 - str4d:block-download-completion, r=daira

Add block download progress to metrics UI

7 years agoImprove network height estimation
Jack Grigg [Fri, 28 Jul 2017 10:50:07 +0000 (10:50 +0000)]
Improve network height estimation

7 years agoCorrect and extend EstimateNetHeightInner tests
Jack Grigg [Fri, 28 Jul 2017 10:35:46 +0000 (10:35 +0000)]
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.

7 years agoAuto merge of #2526 - bitcartel:2480_segfault_zeroconf_from_zaddr, r=daira
Homu [Fri, 28 Jul 2017 05:42:59 +0000 (22:42 -0700)]
Auto merge of #2526 - bitcartel:2480_segfault_zeroconf_from_zaddr, r=daira

Fixes #2480 where missing map entry would cause a segfault.

`wtxHeight = mapBlockIndex[wtx.hashBlock]->nHeight;` results in undefined behaviour when the block hash is not present in the map, returning a null value which is dereferenced via `->nHeight`.  This error is triggered by a zero-conf wallet transaction which has not been mined yet.  As discussed in #2480, on some systems there is a segfault whilst on others there is a silent exit.  This makes it difficult to write a test, but the fix has been tested empirically to confirm an exception is thrown.  This PR fixes the segfault and complements #2525 which prevents a user from sending from a zaddr with minconf 0.

7 years agoAdd block download progress to metrics UI
Jack Grigg [Mon, 26 Jun 2017 23:16:08 +0000 (16:16 -0700)]
Add block download progress to metrics UI

7 years agoAuto merge of #2529 - str4d:2444-rpc-www-authenticate, r=daira
Homu [Tue, 25 Jul 2017 22:36:33 +0000 (15:36 -0700)]
Auto merge of #2529 - str4d:2444-rpc-www-authenticate, r=daira

[rpc] Add WWW-Authenticate header to 401 response

Fix cherry-picked from upstream PR bitcoin/bitcoin#7472.

Closes #2444.

7 years agoAuto merge of #2543 - nathan-at-least:2499-specify-ci-worker-criteria, r=daira
Homu [Tue, 25 Jul 2017 21:16:22 +0000 (14:16 -0700)]
Auto merge of #2543 - nathan-at-least:2499-specify-ci-worker-criteria, r=daira

Document our criteria for adding CI workers.

This is a doc improvement that came out of #2499.

7 years agoDocument our criteria for adding CI workers. closes #2499
Daira Hopwood [Tue, 25 Jul 2017 20:27:16 +0000 (21:27 +0100)]
Document our criteria for adding CI workers. closes #2499

Author: Nathan Wilcox <[email protected]>
Author: Daira Hopwood <[email protected]>
Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2478 - bitcartel:2477_send_alert_1.0.10, r=daira
Homu [Tue, 25 Jul 2017 20:03:53 +0000 (13:03 -0700)]
Auto merge of #2478 - bitcartel:2477_send_alert_1.0.10, r=daira

Alert for 2017-06-23.a degraded networking (fixed in 1.0.10-1)

Alert 1004 (version 1.0.10 only) Issue #2477

7 years agoAuto merge of #2525 - bitcartel:2519_no_zero_minconf_from_zaddr_zsendmany, r=daira
Homu [Thu, 20 Jul 2017 15:24:54 +0000 (08:24 -0700)]
Auto merge of #2525 - bitcartel:2519_no_zero_minconf_from_zaddr_zsendmany, r=daira

When sending from a zaddr, minconf cannot be zero.

Closes #2519.

7 years agoAuto merge of #2504 - daira:2501.remove-upnp, r=daira
Homu [Sun, 16 Jul 2017 10:43:54 +0000 (03:43 -0700)]
Auto merge of #2504 - daira:2501.remove-upnp, r=daira

Remove UPnP support. fixes #2500

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2509 - str4d:ci-workers, r=str4d
Homu [Sat, 15 Jul 2017 02:10:21 +0000 (19:10 -0700)]
Auto merge of #2509 - str4d:ci-workers, r=str4d

Ansible playbook for configuring CI workers

The playbook in this PR can be used for configuring common Unix variants to run a Buildbot worker for the Zcash CI, starting from a fresh install (or a VM template provided by a hosting service).

7 years agoAuto merge of #2458 - daira:2450.pyflakes-cleanup, r=str4d
Homu [Sat, 15 Jul 2017 01:03:03 +0000 (18:03 -0700)]
Auto merge of #2458 - daira:2450.pyflakes-cleanup, r=str4d

pyflakes cleanup

Make the RPC tests pyflakes-clean. fixes #2450

Includes a fix that upstream had in https://github.com/bitcoin/bitcoin/pull/7802

7 years agoAdd pyflakes to required Python modules
Jack Grigg [Fri, 14 Jul 2017 17:25:15 +0000 (12:25 -0500)]
Add pyflakes to required Python modules

See #2494 for details.

7 years agoAdd a separate Buildbot host info template for EC2
Jack Grigg [Fri, 14 Jul 2017 17:24:01 +0000 (12:24 -0500)]
Add a separate Buildbot host info template for EC2

Latent workers are not usually created on the instance type that will be used,
so memory and CPU info collected at AMI creation will likely be inaccurate.

7 years agoRemove Buildbot version from host file
Jack Grigg [Fri, 14 Jul 2017 15:02:14 +0000 (10:02 -0500)]
Remove Buildbot version from host file

Buildbot master already obtains and publishes this in the UI.

7 years agoAdd pyblake2 to required Python modules
Jack Grigg [Thu, 13 Jul 2017 22:40:19 +0000 (17:40 -0500)]
Add pyblake2 to required Python modules

See #2533 for details.

7 years agoAdd steps for setting up a latent worker on Amazon EC2
Jack Grigg [Mon, 10 Jul 2017 21:34:48 +0000 (16:34 -0500)]
Add steps for setting up a latent worker on Amazon EC2

7 years agoAdd Buildbot worker setup to Ansible playbook
Jack Grigg [Mon, 10 Jul 2017 16:08:36 +0000 (11:08 -0500)]
Add Buildbot worker setup to Ansible playbook

Currently assumes the host uses systemd

7 years agoAuto merge of #2535 - daira:zcash-is-experimental-wording, r=daira
Homu [Fri, 14 Jul 2017 15:52:25 +0000 (08:52 -0700)]
Auto merge of #2535 - daira:zcash-is-experimental-wording, r=daira

Change wording in Security Warnings section of README.md.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoFixes #2480. Null entry in map was dereferenced leading to a segfault.
Simon [Wed, 12 Jul 2017 01:03:10 +0000 (18:03 -0700)]
Fixes #2480. Null entry in map was dereferenced leading to a segfault.

7 years agoChange wording in Security Warnings section of README.md.
Daira Hopwood [Fri, 14 Jul 2017 04:18:08 +0000 (05:18 +0100)]
Change wording in Security Warnings section of README.md.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2522 - bitcartel:2446_coinbase_field_listunspent, r=daira
Homu [Thu, 13 Jul 2017 06:46:25 +0000 (23:46 -0700)]
Auto merge of #2522 - bitcartel:2446_coinbase_field_listunspent, r=daira

Add generated field to listunspent output

Closes #2446

7 years agorpc: Add WWW-Authenticate header to 401 response
Wladimir J. van der Laan [Fri, 5 Feb 2016 09:45:50 +0000 (10:45 +0100)]
rpc: Add WWW-Authenticate header to 401 response

A WWW-Authenticate header must be present in the 401
response to make clients know that they can authenticate,
and how.

    WWW-Authenticate: Basic realm="jsonrpc"

Fixes #7462.

7 years agoAdd test for issue #2444
Jack Grigg [Wed, 12 Jul 2017 21:34:07 +0000 (16:34 -0500)]
Add test for issue #2444

A WWW-Authenticate header must be present in the 401 response to make clients
know that they can authenticate, and how.

7 years agoFixes #2519. When sending from a zaddr, minconf cannot be zero.
Simon [Tue, 11 Jul 2017 18:29:43 +0000 (11:29 -0700)]
Fixes #2519. When sending from a zaddr, minconf cannot be zero.

7 years agoCloses #2446 by adding generated field to listunspent.
Simon [Tue, 11 Jul 2017 07:53:55 +0000 (00:53 -0700)]
Closes #2446 by adding generated field to listunspent.

If generated is true, the unspent transaction output is from a
coinbase transaction and can only be sent to a shielded address.

7 years agoAuto merge of #2460 - str4d:process-temp-release-notes, r=daira
Homu [Mon, 10 Jul 2017 18:44:00 +0000 (11:44 -0700)]
Auto merge of #2460 - str4d:process-temp-release-notes, r=daira

Pull in temporary release notes during the release process

This PR assumes we always have at least one notable change in `doc/release-notes.md`, which should be the case for every release.

7 years agoAuto merge of #2464 - str4d:torcontrol-rbf-resource-leak, r=daira
Homu [Mon, 10 Jul 2017 17:43:22 +0000 (10:43 -0700)]
Auto merge of #2464 - str4d:torcontrol-rbf-resource-leak, r=daira

Net: Fix resource leak in ReadBinaryFile(...)

Introduced in 3290567bbd54e01cb6fe6b1d04c659abca983af2 via PR #2177.

Cherry-picked from Bitcoin PR https://github.com/bitcoin/bitcoin/pull/10408

7 years agoSimplify Python installation, inform user if they need to manually configure
Jack Grigg [Mon, 10 Jul 2017 15:30:23 +0000 (10:30 -0500)]
Simplify Python installation, inform user if they need to manually configure

7 years agoVariable overrides for FreeBSD
Jack Grigg [Wed, 5 Jul 2017 00:47:34 +0000 (17:47 -0700)]
Variable overrides for FreeBSD

These are insufficient to enable FreeBSD to build.

7 years agoVariable overrides for Debian, Ubuntu and Fedora
Jack Grigg [Wed, 5 Jul 2017 00:47:11 +0000 (17:47 -0700)]
Variable overrides for Debian, Ubuntu and Fedora

7 years agoAnsible playbook for installing Zcash dependencies and Buildbot worker
Jack Grigg [Wed, 5 Jul 2017 00:46:17 +0000 (17:46 -0700)]
Ansible playbook for installing Zcash dependencies and Buildbot worker

7 years agoRemove UPnP support. fixes #2500
Daira Hopwood [Mon, 3 Jul 2017 07:57:05 +0000 (08:57 +0100)]
Remove UPnP support. fixes #2500

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoPull in temporary release notes during the release process
Jack Grigg [Thu, 22 Jun 2017 02:21:35 +0000 (14:21 +1200)]
Pull in temporary release notes during the release process

7 years agoAlert 1004 (version 1.0.10 only)
Daira Hopwood [Sat, 24 Jun 2017 18:49:41 +0000 (19:49 +0100)]
Alert 1004 (version 1.0.10 only)

Author: Simon <[email protected]>
Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2474 - bitcartel:release-v1.0.10-1, r=bitcartel
Homu [Sat, 24 Jun 2017 03:13:47 +0000 (20:13 -0700)]
Auto merge of #2474 - bitcartel:release-v1.0.10-1, r=bitcartel

Release v1.0.10-1

7 years agomake-release.py: Updated release notes and changelog for 1.0.10-1.
Simon [Sat, 24 Jun 2017 02:50:41 +0000 (19:50 -0700)]
make-release.py: Updated release notes and changelog for 1.0.10-1.

7 years agomake-release.py: Updated manpages for 1.0.10-1.
Simon [Sat, 24 Jun 2017 02:50:40 +0000 (19:50 -0700)]
make-release.py: Updated manpages for 1.0.10-1.

7 years agomake-release.py: Versioning changes for 1.0.10-1.
Simon [Sat, 24 Jun 2017 02:43:29 +0000 (19:43 -0700)]
make-release.py: Versioning changes for 1.0.10-1.

7 years agoAuto merge of #2462 - str4d:2404-gitian-no-proton, r=ebfull
Homu [Sat, 24 Jun 2017 01:34:31 +0000 (18:34 -0700)]
Auto merge of #2462 - str4d:2404-gitian-no-proton, r=ebfull

Disable building Proton in Gitian

This is the patch used to build 1.0.9 and 1.0.10.

Part of #2404.

7 years agoAuto merge of #2473 - ebfull:init-proto-hotfix-release, r=ebfull
Homu [Sat, 24 Jun 2017 00:26:34 +0000 (17:26 -0700)]
Auto merge of #2473 - ebfull:init-proto-hotfix-release, r=ebfull

Revert changes to INIT_PROTO_VERSION

This reverts https://github.com/zcash/zcash/pull/2245 in order to fix degraded networking behavior for 1.0.10 clients.

7 years agoRevert "Delete old protocol version constants and simplify code that used them."
Sean Bowe [Sat, 24 Jun 2017 00:19:25 +0000 (18:19 -0600)]
Revert "Delete old protocol version constants and simplify code that used them."

This reverts commit 5a49c929ddccb8a6ca1ac744cefa6af7817ea3de.

7 years agoRevert "Remove an unneeded version workaround as per @str4d's review comment."
Sean Bowe [Sat, 24 Jun 2017 00:19:17 +0000 (18:19 -0600)]
Revert "Remove an unneeded version workaround as per @str4d's review comment."

This reverts commit 1e9db0b38a64e8df510294e44b5e6afb4b2dffc8.

7 years agoNet: Fix resource leak in ReadBinaryFile(...)
practicalswift [Wed, 14 Jun 2017 15:32:45 +0000 (17:32 +0200)]
Net: Fix resource leak in ReadBinaryFile(...)

Introduced in 3290567bbd54e01cb6fe6b1d04c659abca983af2 via PR #2177.

7 years agoCosmetics (trailing whitespace, comment conventions, etc.)
Daira Hopwood [Tue, 20 Jun 2017 20:23:24 +0000 (21:23 +0100)]
Cosmetics (trailing whitespace, comment conventions, etc.)

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoFor unused variables reported by pyflakes, either remove the variable,
Daira Hopwood [Tue, 20 Jun 2017 20:20:50 +0000 (21:20 +0100)]
For unused variables reported by pyflakes, either remove the variable,
suppress the warning, or fix a bug (if the wrong variable was used).
refs #2450

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoClean up imports to be pyflakes-checkable. fixes #2450
Daira Hopwood [Tue, 20 Jun 2017 20:09:33 +0000 (21:09 +0100)]
Clean up imports to be pyflakes-checkable. fixes #2450

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoDisable building Proton in Gitian
Jack Grigg [Thu, 22 Jun 2017 13:02:01 +0000 (01:02 +1200)]
Disable building Proton in Gitian

This is the patch used to build 1.0.9 and 1.0.10.

Part of #2404.

7 years agoAuto merge of #2461 - str4d:release-v1.0.10, r=str4d
Homu [Thu, 22 Jun 2017 03:40:11 +0000 (20:40 -0700)]
Auto merge of #2461 - str4d:release-v1.0.10, r=str4d

Release v1.0.10

7 years agoMove temporary release notes to final ones
Jack Grigg [Thu, 22 Jun 2017 03:23:02 +0000 (15:23 +1200)]
Move temporary release notes to final ones

7 years agomake-release.py: Updated release notes and changelog for 1.0.10.
Jack Grigg [Thu, 22 Jun 2017 03:13:04 +0000 (15:13 +1200)]
make-release.py: Updated release notes and changelog for 1.0.10.

7 years agomake-release.py: Updated manpages for 1.0.10.
Jack Grigg [Thu, 22 Jun 2017 03:05:04 +0000 (15:05 +1200)]
make-release.py: Updated manpages for 1.0.10.

7 years agomake-release.py: Versioning changes for 1.0.10.
Jack Grigg [Thu, 22 Jun 2017 02:47:15 +0000 (14:47 +1200)]
make-release.py: Versioning changes for 1.0.10.

7 years agoAuto merge of #2342 - bitcartel:1081__mempoolpatch, r=str4d
Homu [Wed, 21 Jun 2017 21:42:13 +0000 (14:42 -0700)]
Auto merge of #2342 - bitcartel:1081__mempoolpatch, r=str4d

Add ability for node to reject tx from mempool by number of tx inputs

Implement short-term solution described in #2343 so that users can respond promptly to critical short-term problems caused by quadratic validation scaling, such as the getblocktemplate latency, block propagation latency, and mempool size inflation issues described in #2333.

7 years agoUse sendfrom for both t-addr calls
Jack Grigg [Wed, 21 Jun 2017 21:34:10 +0000 (09:34 +1200)]
Use sendfrom for both t-addr calls

7 years agoAuto merge of #2360 - daira:2359.remove-lax-der-validation, r=arcalinea
Homu [Wed, 21 Jun 2017 02:05:58 +0000 (19:05 -0700)]
Auto merge of #2360 - daira:2359.remove-lax-der-validation, r=arcalinea

Remove unneeded lax ECDSA signature verification

Fixes #2359. Removes code for lax ECDSA verification, and the SCRIPT_VERIFY_DERSIG flag that controlled it. The behaviour is as-if the flag is always set.

7 years agoFix #b1eb4f2 so test checks sendfrom as originally intended.
Simon [Tue, 20 Jun 2017 22:49:03 +0000 (22:49 +0000)]
Fix #b1eb4f2 so test checks sendfrom as originally intended.

Also reduce number of z_sendmany calls made so test runs quicker.

7 years agoDelete test that is redundant and inapplicable to Zcash.
Daira Hopwood [Tue, 20 Jun 2017 09:03:17 +0000 (10:03 +0100)]
Delete test that is redundant and inapplicable to Zcash.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2456 - btccom:master, r=str4d
Homu [Tue, 20 Jun 2017 08:15:15 +0000 (01:15 -0700)]
Auto merge of #2456 - btccom:master, r=str4d

[mining] let "getblocktemplate" work when disable wallet

we already support GetBlockTemplate without build wallet, see:

https://github.com/zcash/zcash/blob/master/src/rpcmining.cpp

```
    // Wallet or miner address is required because we support coinbasetxn
    if (GetArg("-mineraddress", "").empty()) {
#ifdef ENABLE_WALLET
        if (!pwalletMain) {
            throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Wallet disabled and -mineraddress not set");
        }
#else
        throw JSONRPCError(RPC_METHOD_NOT_FOUND, "zcashd compiled without wallet and -mineraddress not set");
#endif
    }
```

so the macro should be removed from `src/rpcserver.cpp`, otherwise you can't call `getblocktemplate` when you disable wallet.

7 years agoFix comment
Jack Grigg [Tue, 20 Jun 2017 07:54:11 +0000 (19:54 +1200)]
Fix comment

7 years agoAuto merge of #2443 - str4d:1621-priority-download-path, r=str4d
Homu [Tue, 20 Jun 2017 06:46:44 +0000 (23:46 -0700)]
Auto merge of #2443 - str4d:1621-priority-download-path, r=str4d

Rename FALLBACK_DOWNLOAD_PATH to PRIORITY_DOWNLOAD_PATH

Closes #1621.

7 years agoPartial revert & fix for commit 9e84b5a ; code block in wrong location.
Simon [Tue, 20 Jun 2017 04:11:34 +0000 (21:11 -0700)]
Partial revert & fix for commit 9e84b5a ; code block in wrong location.

7 years agoAdditional testing of -mempooltxinputlimit
Jack Grigg [Tue, 20 Jun 2017 03:58:46 +0000 (15:58 +1200)]
Additional testing of -mempooltxinputlimit

7 years ago"getblocktemplate" could work without wallet
Kevin Pan [Tue, 20 Jun 2017 02:41:46 +0000 (10:41 +0800)]
"getblocktemplate" could work without wallet

7 years agoFix a comment that was made stale before launch by #1016 (commit 542da61).
Daira Hopwood [Wed, 7 Jun 2017 14:29:58 +0000 (15:29 +0100)]
Fix a comment that was made stale before launch by #1016 (commit 542da61).

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoMake transaction test failures print the comments preceding the test JSON.
Daira Hopwood [Wed, 7 Jun 2017 12:09:56 +0000 (13:09 +0100)]
Make transaction test failures print the comments preceding the test JSON.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoRepair tests for strict DER signatures.
Daira Hopwood [Wed, 10 May 2017 11:42:00 +0000 (12:42 +0100)]
Repair tests for strict DER signatures.
While we're at it, repair a similar test for CLTV, and make the repaired RPC tests run by default.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoCheck mempooltxinputlimit when creating a transaction to avoid local
Simon [Sat, 17 Jun 2017 21:41:25 +0000 (14:41 -0700)]
Check mempooltxinputlimit when creating a transaction to avoid local
mempool rejection.

7 years agoStrict DER signatures are always enforced; remove the flag and code that used it.
Daira Hopwood [Sun, 7 May 2017 18:46:41 +0000 (19:46 +0100)]
Strict DER signatures are always enforced; remove the flag and code that used it.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoRemove unneeded lax ECDSA signature verification.
Daira Hopwood [Sun, 7 May 2017 17:34:47 +0000 (18:34 +0100)]
Remove unneeded lax ECDSA signature verification.

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2335 - str4d:2333-validation-speed, r=str4d
Homu [Sat, 17 Jun 2017 14:18:25 +0000 (07:18 -0700)]
Auto merge of #2335 - str4d:2333-validation-speed, r=str4d

Switch to libsecp256k1-based validation for ECDSA

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6983
- bitcoin/bitcoin#6954

Part of #2333.

7 years agoHold an ECCVerifyHandle in zcash-gtest
Jack Grigg [Sat, 17 Jun 2017 14:15:05 +0000 (02:15 +1200)]
Hold an ECCVerifyHandle in zcash-gtest

7 years agoAdd test for -mempooltxinputlimit
Jack Grigg [Sat, 17 Jun 2017 02:59:16 +0000 (14:59 +1200)]
Add test for -mempooltxinputlimit

7 years agoAdd option 'mempooltxinputlimit' so the mempool can reject a transaction
Simon [Thu, 4 May 2017 18:35:08 +0000 (11:35 -0700)]
Add option 'mempooltxinputlimit' so the mempool can reject a transaction
based on the number of transparent inputs.

7 years agoAuto merge of #2436 - kozyilmaz:multipath, r=str4d
Homu [Sat, 17 Jun 2017 01:03:42 +0000 (18:03 -0700)]
Auto merge of #2436 - kozyilmaz:multipath, r=str4d

support per platform filename and hash setting for dependencies

added to support per-platform Rust packages, tested on macOS Sierra 10.12.5 and Ubuntu 16.04 LTS (issue #2431)

7 years agoEnsure that ECDSA constant sizes are correctly-sized
Jack Grigg [Thu, 8 Jun 2017 04:07:49 +0000 (16:07 +1200)]
Ensure that ECDSA constant sizes are correctly-sized

7 years agoRemove redundant `= 0` initialisations
Jack Grigg [Tue, 6 Jun 2017 08:28:37 +0000 (20:28 +1200)]
Remove redundant `= 0` initialisations

7 years agoSpecify ECDSA constant sizes as constants
Jack Grigg [Tue, 6 Jun 2017 07:21:34 +0000 (19:21 +1200)]
Specify ECDSA constant sizes as constants

7 years agoUpdate Debian copyright list
Jack Grigg [Tue, 6 Jun 2017 06:03:50 +0000 (18:03 +1200)]
Update Debian copyright list

7 years agoAdd comments
Jack Grigg [Tue, 6 Jun 2017 05:44:17 +0000 (17:44 +1200)]
Add comments

7 years agoAuto merge of #2440 - bitcartel:1360_reduce_info_leakage_vpub_new, r=str4d
Homu [Fri, 16 Jun 2017 04:33:01 +0000 (21:33 -0700)]
Auto merge of #2440 - bitcartel:1360_reduce_info_leakage_vpub_new, r=str4d

Fix intermediate vpub_new leakage in multi joinsplit tx

Resolves information leakage discussed here https://github.com/zcash/zcash/issues/1360#issuecomment-284561331

Example output in debug.log showing how intermediate vpub_new is now 0
https://gist.github.com/bitcartel/86ca316b74f0b1ec6d8de3ac132006da

When reviewing, note that the indentation of a large chunk of code (scenario 3 part 2) changed, so use `git diff -w` (or similar) or append `?w=1` to the Github URL e.g. https://github.com/zcash/zcash/pull/2440/files?w=1

7 years agoAuto merge of #2386 - str4d:2385-consensus-correction, r=str4d
Homu [Fri, 16 Jun 2017 01:50:03 +0000 (18:50 -0700)]
Auto merge of #2386 - str4d:2385-consensus-correction, r=str4d

Correct consensus logic in ContextualCheckInputs

Closes #2385.

7 years agoCorrect consensus logic in ContextualCheckInputs
Jack Grigg [Thu, 18 May 2017 01:21:00 +0000 (13:21 +1200)]
Correct consensus logic in ContextualCheckInputs

Closes #2385.

7 years agoAdd test for incorrect consensus logic
Jack Grigg [Wed, 14 Jun 2017 03:33:11 +0000 (15:33 +1200)]
Add test for incorrect consensus logic

7 years agoAuto merge of #2227 - str4d:2074-ignore-virtual-cores, r=str4d
Homu [Fri, 16 Jun 2017 00:05:02 +0000 (17:05 -0700)]
Auto merge of #2227 - str4d:2074-ignore-virtual-cores, r=str4d

Use real number of cores, ignore virtual cores

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#6361
- bitcoin/bitcoin#6370

Part of #2074.

7 years agoAuto merge of #1747 - str4d:fix-spendingkey-locking, r=str4d
Homu [Thu, 15 Jun 2017 23:02:07 +0000 (16:02 -0700)]
Auto merge of #1747 - str4d:fix-spendingkey-locking, r=str4d

Fix incorrect locking in CCryptoKeyStore

7 years agoAuto merge of #2420 - kozyilmaz:disable-libs, r=str4d
Homu [Thu, 15 Jun 2017 14:31:46 +0000 (07:31 -0700)]
Auto merge of #2420 - kozyilmaz:disable-libs, r=str4d

option to disable building libraries (zcutil/build.sh)

option to disable building libraries (zcutil/build.sh)

7 years agoRename FALLBACK_DOWNLOAD_PATH to PRIORITY_DOWNLOAD_PATH
Jack Grigg [Thu, 15 Jun 2017 04:32:36 +0000 (16:32 +1200)]
Rename FALLBACK_DOWNLOAD_PATH to PRIORITY_DOWNLOAD_PATH

Closes #1621.

7 years agoFix intermediate vpub_new leakage in multi joinsplit tx (#1360)
Simon [Mon, 12 Jun 2017 06:13:14 +0000 (23:13 -0700)]
Fix intermediate vpub_new leakage in multi joinsplit tx (#1360)

7 years agoAuto merge of #2245 - daira:2244.remove-old-peer-workarounds, r=str4d
Homu [Wed, 14 Jun 2017 06:10:19 +0000 (23:10 -0700)]
Auto merge of #2245 - daira:2244.remove-old-peer-workarounds, r=str4d

Delete old protocol version constants and simplify code that used them.

fixes #2244

Signed-off-by: Daira Hopwood <[email protected]>
7 years agoAuto merge of #2412 - kozyilmaz:linker, r=str4d
Homu [Wed, 14 Jun 2017 03:16:13 +0000 (20:16 -0700)]
Auto merge of #2412 - kozyilmaz:linker, r=str4d

[macOS] system linker does not support “--version” option but only “-v”

To build Zcash on macOS Sierra I use a self-built gcc-6.3/g++-6.3 but macOS linker (/usr/bin/ld). macOS linker does not support “--version” option but “-v”

On Ubuntu 16.04
```
$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.26.1
Copyright (C) 2015 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
$ ld -v
GNU ld (GNU Binutils for Ubuntu) 2.26.1
```

On macOS Sierra
```
$ ld --version
ld: unknown option: --version
$ ld -v
@(#)PROGRAM:ld  PROJECT:ld64-278.4
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em (tvOS)
LTO support using: LLVM version 8.1.0, (clang-802.0.42)
TAPI support using: Apple TAPI version 1.33.11
```

7 years agoAuto merge of #2429 - hajdbo:master, r=daira
Homu [Fri, 9 Jun 2017 21:48:28 +0000 (14:48 -0700)]
Auto merge of #2429 - hajdbo:master, r=daira

documentation z_validateaddress was missing param

This page took 0.069367 seconds and 4 git commands to generate.