Commit Graph

10885 Commits

Author SHA1 Message Date
Jack Grigg
53e1e64d44 List dependencies for release script in release process doc 2017-09-19 22:32:59 +01:00
Homu
17cb84a63f Auto merge of #2582 - arielgabizon:apitweak, r=daira
add examples to z_getoperationresult

Add examples of usage in payment-api.md
2017-09-19 13:37:58 -07:00
Homu
6e9964ff70 Auto merge of #2613 - arielgabizon:load-wallet-benchmark, r=str4d
Add load-wallet benchmark

Closes #2518.
2017-09-19 01:52:22 -07:00
Homu
2dfc8842ae Auto merge of #2618 - str4d:2596-user-guide-t9n, r=str4d
Update user guide translations as part of release process

Part of #2596.
2017-09-18 18:21:19 -07:00
Homu
151932d478 Auto merge of #2600 - str4d:2497-hotfix-release, r=str4d
Implement process for hotfix releases

Closes #2497.
2017-09-18 16:02:26 -07:00
Ariel Gabizon
2e8aefdce1 add load-wallet benchmark 2017-09-18 21:54:53 +02:00
Homu
61d9c6745a Auto merge of #2545 - bhjortsberg:fixes-for-gcc-7, r=str4d
Fixes for gcc 7

This fixes a few issues when using a newer compiler (in my case gcc 7.1.1) available in for example Arch Linux.
Solves for example this issue: https://github.com/zcash/zcash/issues/2304

The first thing is an error when checking for boost_system and is solved by disabling that warning (wich is treated as an error and, hence, stops the build):

```
configure:22242: checking for exit in -lboost_system-mt
configure:22267: g++ -m64 -o conftest -std=c++11 -pipe -fPIC -O1 -fwrapv -fno-strict-aliasing -Werror -g  -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -fPIE ..<snip>... /x86_64-unknown-linux-gnu/share/../lib conftest.cpp -lboost_system-mt  -lanl  >&5
conftest.cpp:70:6: error: declaration of 'char exit()' conflicts with built-in declaration 'void exit(int)' [-Werror=builtin-declaration-mismatch]
 char exit ();
      ^~~~
cc1plus: all warnings being treated as errors

```

The second thing was to clean some code that is deprecated in C++11 which also lead to a warning treated as error. It could also be fixed with `-Wno-deprecated` but better to fix the issue in my opinion.
2017-09-18 11:45:24 -07: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
Homu
e0bef1de56 Auto merge of #2564 - str4d:2074-currency-units, r=str4d
Rationalize currency unit to "ZEC"

Cherry-picked from the upstream PR bitcoin/bitcoin#6504

Part of #2074
2017-09-18 00:07:52 -07:00
Nathan Wilcox
de422c066b [tests pass] Ensure importprivkey outputs the address in case key is already imported. 2017-09-18 15:30:42 +09:00
Nathan Wilcox
3e92c028ce Add a new requirement that importprivkey API is idempotent. 2017-09-18 15:30:42 +09:00
Nathan Wilcox
d187317083 [tests pass] Output address on new key import. 2017-09-18 15:30:42 +09:00
Nathan Wilcox
63cdea4233 Add a new rpc-test-specified requirement: importprivkey outputs the associated address. (Test fails.) 2017-09-18 15:30:42 +09:00
Nathan Wilcox
d29b6b042f key_import_export rpc-test: verify that UTXO view co-evolves for nodes sharing a key. 2017-09-18 15:30:42 +09:00
Jack Grigg
de3e143461 Clarify branching and force-building operations in hotfix process 2017-09-15 10:52:51 +01:00
Homu
d1bba6f1b6 Auto merge of #2601 - str4d:2156-large-wallet-utxos, r=str4d
Benchmark time to call sendtoaddress with many UTXOs

Part of #2156.
2017-09-13 15:38:57 -07:00
Homu
3d2122d5b5 Auto merge of #2609 - str4d:2262-github-release-notes, r=str4d
Add GitHub release notes to release process

Closes #2262.
2017-09-13 13:53:28 -07: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
Homu
446c49b047 Auto merge of #2560 - str4d:ci-workers-bugfix, r=str4d
ci-workers: Bugfixes and improvements
2017-09-06 04:32:03 -07:00
Homu
053fafc21a Auto merge of #2570 - jasondavies:fix-deprecation-comment, r=str4d
Fix deprecation policy comment.

Thanks to @daira for spotting this and suggesting the correct policy.

Feel free to adjust wording, this is primarily to track the issue and suggest a potential fix.
2017-09-04 14:35:39 -07: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
Jason Davies
d6252a9473 Fix deprecation policy comment.
Thanks to @daira for spotting this and suggesting the correct policy.
2017-08-15 19:09:12 +01:00
Homu
02dd675a25 Auto merge of #2585 - str4d:release-v1.0.11, r=str4d
Release v1.0.11
2017-08-15 09:22:56 -07: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
Ariel
251ab9b3d7 add examples to z_getoperationresult 2017-08-13 18:22:14 +02: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
Ross Nicoll
091b2116a0 Rationalize currency unit to "BTC"
Previously various user-facing strings have used inconsistent currency units "BTC",
"btc" and "bitcoins". This adds a single constant and uses it for each reference to
the currency unit.

Also adds a description of the unit for --maxtxfee, and adds the missing "amount"
field description to the (deprecated) move RPC command.
2017-08-03 16:32:41 +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
Sean Bowe
26a8f68ea8 Remove libsnark from depends system and integrate it into build system. 2017-08-02 15:49:30 +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
Homu
2a42478bff Auto merge of #2562 - arielgabizon:release-v1.0.11-rc1, r=daira
Release v1.0.11 rc1
2017-08-01 12:37:26 -07:00
Cory Fields
c98b91b7c5 httpserver: explicitly detach worker threads
When using std::thread in place of boost::thread, letting the threads destruct
results in a std::terminate. According to the docs, the same thing should be
be happening in later boost versions:
http://www.boost.org/doc/libs/1_55_0/doc/html/thread/thread_management.html#thread.thread_management.thread.destructor

I'm unsure why this hasn't blown up already, but explicitly detaching can't
hurt.

Zcash: cherry-picked from commit d3773ca9aeb0d2f12dc0c5a0726778050c8cb455
This fixes #2554 (zcash-cli stop during getblocktemplate long poll
causes 'Assertion `!pthread_mutex_unlock(&m)' failed.')
2017-08-01 20:24:27 +01:00
Wladimir J. van der Laan
c7f77e28f0 http: speed up shutdown
This continues/fixes #6719.

`event_base_loopbreak` was not doing what I expected it to, at least in
libevent 2.0.21.
What I expected was that it sets a timeout, given that no other pending
events it would exit in N seconds. However, what it does was delay the
event loop exit with 10 seconds, even if nothing is pending.

Solve it in a different way: give the event loop thread time to exit
out of itself, and if it doesn't, send loopbreak.

This speeds up the RPC tests a lot, each exit incurred a 10 second
overhead, with this change there should be no shutdown overhead in the
common case and up to two seconds if the event loop is blocking.

As a bonus this breaks dependency on boost::thread_group, as the HTTP
server minds its own offspring.

Zcash: cherry-picked from commit a264c32e3321ae909ca59cb8ce8bf5d812dbc4e1
2017-08-01 20:24:27 +01:00
Wladimir J. van der Laan
2abe8ef721 http: Force-exit event loop after predefined time
This makes sure that the event loop eventually terminates, even if an
event (like an open timeout, or a hanging connection) happens to be
holding it up.

Zcash: cherry-picked from commit ec908d5f7aa9ad7e3487018e06a24cb6449cc58b
2017-08-01 20:24:27 +01:00
Wladimir J. van der Laan
dbf7057f7a http: Wait for worker threads to exit
Add a WaitExit() call to http's WorkQueue to make it delete the work
queue only when all worker threads stopped.

This fixes a problem that was reproducable by pressing Ctrl-C during
AppInit2:
```
/usr/include/boost/thread/pthread/condition_variable_fwd.hpp:81: boost::condition_variable::~condition_variable(): Assertion `!ret' failed.
/usr/include/boost/thread/pthread/mutex.hpp:108: boost::mutex::~mutex(): Assertion `!posix::pthread_mutex_destroy(&m)' failed.
```

I was assuming that `threadGroup->join_all();` would always have been
called when entering the Shutdown(). However this is not the case in
bitcoind's AppInit2-non-zero-exit case "was left out intentionally
here".

Zcash: cherry-picked from commit de9de2de361ab1355b976f17371d73e36fe3bf56
Fixes #2334 and #2214.
2017-08-01 20:24:27 +01:00
Wladimir J. van der Laan
c0fe29370a Make HTTP server shutdown more graceful
Shutting down the HTTP server currently breaks off all current requests.
This can create a race condition with RPC `stop` command, where the calling
process never receives confirmation.

This change removes the listening sockets on shutdown so that no new
requests can come in, but no longer breaks off requests in progress.

Meant to fix bitcoin/#6717.

Zcash: cherry-picked from commit 5e0c22135600fe36811da3b78216efc61ba765fb
2017-08-01 20:24:27 +01:00
Ariel Gabizon
1ea4df6826 make-release.py: Updated release notes and changelog for 1.0.11-rc1. 2017-08-01 17:12:52 +02:00