Commit Graph
11366 Commits
Author SHA1 Message Date
jl777 5fa9e2fe69 Test 2017-09-18 15:15:44 +02:00
jl777 b4123cf295 Test 2017-09-18 15:13:56 +02:00
jl777 74819673e6 Test 2017-09-18 15:12:16 +02:00
jl777 428690eefc Test 2017-09-18 15:10:57 +02:00
jl777 7e24efd429 Print sync messages 2017-09-18 15:09:53 +02: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 d187317083 [tests pass] Output address on new key import. 2017-09-18 15:30:42 +09: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
jl777 e319fd1267 Test 2017-09-07 12:52:04 +02:00
jl777 923f51772f Komodo.conf for osx 2017-09-07 12:51:41 +02:00
jl777 b71b045a72 Remove win prints 2017-09-06 23:17:00 +02:00
jl777 9e602ac220 Remove pax prints 2017-09-06 18:09:39 +02:00
jl777 95d884b6af Test 2017-09-01 10:46:11 +02:00
jl777 5246c7edf8 Fix paxprice 2017-08-31 18:17:26 +02:00
jl777 a8256266cc Test 2017-08-31 17:48:14 +02:00
Jack Grigg a76174b76b Benchmark time to call sendtoaddress with many UTXOs 2017-08-31 02:15:06 +01:00
jl777 f972c717da Test 2017-08-26 14:56:57 +02:00
jl777 bf75a6e772 Test 2017-08-26 14:43:30 +02:00
jl777 dc462b9cbb Test 2017-08-26 14:08:47 +02:00
jl777 b4810651af Test 2017-08-26 13:56:11 +02:00
jl777 520819e7f2 Test 2017-08-26 13:28:15 +02:00
jl777 298ca9e5de Test 2017-08-26 13:25:02 +02:00
jl777 a76936f95b Test 2017-08-26 12:51:32 +02:00
jl777 507b1a9511 Revert 2017-08-26 12:43:08 +02:00
jl777 7bf0b7a62a Fix btc overflow 2017-08-26 12:31:40 +02:00
jl777 768dccac67 Test 2017-08-26 11:04:47 +02:00
jl777 c2daacd692 Test 2017-08-26 10:56:13 +02:00
jl777 3764439ef3 Test 2017-08-26 10:50:40 +02:00
jl777 3f0bb97653 Test 2017-08-26 10:05:01 +02:00
jl777 a3aeae368f Test 2017-08-26 09:47:13 +02:00
jl777 ee0c53e50c Test 2017-08-24 17:46:36 +02:00
jl777 0a92b261a8 Remove printout 2017-08-24 17:10:59 +02:00
jl777 b310d58530 Hot fix for excessive fees 2017-08-22 09:18:46 +02: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
jl777 57892e5aaa Test 2017-08-15 11:31:01 +02:00
jl777 b5dc10bc38 Test http fix 2017-08-15 11:28:25 +02:00
Jack Grigg 2fd43c599f make-release.py: Versioning changes for 1.0.11. 2017-08-15 09:52:36 +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 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
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 fcf824e9f1 make-release.py: Versioning changes for 1.0.11-rc1. 2017-08-01 17:11:57 +02:00