Commit Graph

11487 Commits

Author SHA1 Message Date
whythat e111904a76 [qa]: add parsing for '<host>:<port>' argument form to rpc_url()
Github-Pull: #8400
Rebased-From: 0ff4375c93
2016-09-21 02:43:47 +00:00
Wladimir J. van der Laan 69d1cd202d net: Ignore `notfound` P2P messages
Github-Pull: #8427
Rebased-From: 5c9e49d12c
2016-09-21 02:43:47 +00:00
Jonas Schnelli f70be14f8f [QA] Add walletdump RPC test (including HD- & encryption-tests)
Github-Pull: #8417
Rebased-From: 54af51d98d
2016-09-21 02:43:47 +00:00
Kaz Wesley 1f21d161a5 prepend license statement to indirectmap
Add statement about MIT licensing to indirectmap.h. I forgot the license
preamble when I originally wrote the file.

Github-Pull: #8414
Rebased-From: d3af342276
2016-09-21 02:43:47 +00:00
Jeremy Rubin 03b01966fa Fix obvious assignment/equality error in test
Github-Pull: #8673
Rebased-From: 426e7bce0e
2016-09-21 02:43:47 +00:00
Gaurav Rana 8a7d7ffe65 update name of file bitcoin.qrc
Github-Pull: #8683
Rebased-From: df2d2e70ca
2016-09-21 02:43:47 +00:00
Anthony Towns 147003c73e Add configure check for -latomic
Github-Pull: #8563
Rebased-From: 878faacd7b
2016-09-21 02:43:47 +00:00
Suhas Daftuar 091cdebfb8 Clear witness with vin/vout in CWallet::CreateTransaction()
Github-Pull: #8664
Rebased-From: c40b034327
2016-09-21 02:43:47 +00:00
Jonas Schnelli 8e03382279 [Qt][CoinControl] fix UI bug that could result in paying unexpected fee
Github-Pull: #8678
Rebased-From: 04802930d4
2016-09-21 02:43:47 +00:00
Johnson Lau 6b07362b37 Fix SIGHASH_SINGLE bug in test_framework SignatureHash
The value for "other" inputs should be -1 (0xffffffffffffffff) instead of 0

Github-Pull: #8667
Rebased-From: 2f2548d5e0
2016-09-21 02:43:47 +00:00
instagibbs a114a0208b p2psegwit.py transaction is rejected due to premature witness not size
Github-Pull: #8528
Rebased-From: 5547aeb015
2016-09-21 02:43:47 +00:00
instagibbs 3606b6b3a7 Update p2p-segwit.py to reflect correct AskFor behavior
Github-Pull: #8528
Rebased-From: bc1d1f2660
2016-09-21 02:43:47 +00:00
BtcDrak 733760a700 Update btcdrak signing key
Github-Pull: #8662
Rebased-From: 46606af200
2016-09-21 02:43:47 +00:00
instagibbs c6a629100b add witness address to address book
Github-Pull: #8693
Rebased-From: 62ffbbdec3
2016-09-21 02:43:47 +00:00
Wladimir J. van der Laan 8d9e8adc05
Merge #8744: [0.13.1] qa Backports
d6ebe13 [qa] Refactor RPCTestHandler to prevent TimeoutExpired (MarcoFalke)
ae8c7df [qa] create_cache: Delete temp dir when done (MarcoFalke)
63462c2 [qa] remove root test directory for RPC tests (whythat)
2016-09-20 12:49:33 +02:00
MarcoFalke d6ebe1369f [qa] Refactor RPCTestHandler to prevent TimeoutExpired
Github-Pull: #8750
Rebased-From: dddd04f979
2016-09-19 17:11:18 +02:00
MarcoFalke ae8c7df7a5 [qa] create_cache: Delete temp dir when done
Github-Pull: #8713
Rebased-From: fa27d990ee
2016-09-16 11:29:35 +02:00
whythat 63462c2b4b [qa] remove root test directory for RPC tests
Github-Pull: #8652
Rebased-From: 438e94dc33 c62cc4ec75
2016-09-16 11:28:48 +02:00
Wladimir J. van der Laan 4731623777
Merge #8710: [0.13.1] qt Backports
a37cec5 Persist the datadir after option reset (Andrew Chow)
d9f0d4e Fix minimize and close bugs (adlawren)
41fd852 fix op order to append first alert (rodasmith)
2016-09-13 17:23:17 +02:00
Andrew Chow a37cec537b Persist the datadir after option reset
Github-Pull: #8487
Rebased-From: 15df3c196b 57acb82e70
2016-09-13 11:39:08 +02:00
adlawren d9f0d4e073 Fix minimize and close bugs
refs #8225

To ensure the GUI closes when the "Minimize on close" window option is disabled, and the "Minimize to the tray instead of the taskbar" window option is enbaled, remove a check made against the "Minimize to the tray instead of the taskbar" value, made during GUI closure.

To ensure the GUI minimizes to the taskbar when the "Minimize on close" window option is enabled, and the "Minimize to the tray instead of the taskbar" window option is disabled, minimize the GUI and ignore the closure event.

Github-Pull: #8481
Rebased-From: 05242e937d
2016-09-13 11:36:55 +02:00
rodasmith 41fd852d3f fix op order to append first alert
Github-Pull: #8697
Rebased-From: 1d635ae61b
2016-09-13 11:35:52 +02:00
Pieter Wuille a9429ca26d
Reduce default number of blocks to check at startup
Github-Pull: #8611
Rebased-From: 203f2121be
2016-09-09 12:04:55 +02:00
Wladimir J. van der Laan 3226944918
Merge #8679: [0.13] Various backports
ab295bb Do not add random inbound peers to addrman. (Gregory Maxwell)
bbf379b Fix some locks (Pieter Wuille)
2215c22 Check for compatibility with download in FindNextBlocksToDownload (Pieter Wuille)
b8c79a0 Precompute sighashes (Pieter Wuille)
a987431 [util] CopyrightHolders: Check for untranslated substitution (MarcoFalke)
32d75a7 doc: Update build-openbsd for 0.13.0+ and OpenBSD 5.9 (Wladimir J. van der Laan)
b09e13c build: Updates for OpenBSD (Wladimir J. van der Laan)
0e6d753 [doc] build: Mention curl (MarcoFalke)
f1c0d78 [Qt] show network/chain errors in the GUI (Jonas Schnelli)
2611ad7 Added feeler connections increasing good addrs in the tried table. (Ethan Heilman)
1db3352 qt: Fix random segfault when closing "Choose data directory" dialog (Wladimir J. van der Laan)
75f2065 build: Remove check for `openssl/ec.h` (Wladimir J. van der Laan)
2016-09-09 12:00:46 +02:00
Gregory Maxwell ab295bb4be Do not add random inbound peers to addrman.
We should learn about new peers via address messages.

An inbound peer connecting to us tells us nothing about
 its ability to accept incoming connections from us, so
 we shouldn't assume that we can connect to it based on
 this.

The vast majority of nodes on the network do not accept
 incoming connections, adding them will only slow down
 the process of making a successful connection in the
 future.

Nodes which have configured themselves to not announce would prefer we
 not violate their privacy by announcing them in GETADDR responses.
2016-09-07 16:43:15 +02:00
Pieter Wuille bbf379b055 Fix some locks
This makes sure that cs_filter is never held while taking cs_main
or CNode::cs_vSend.
2016-09-07 16:42:42 +02:00
Pieter Wuille 2215c22a00 Check for compatibility with download in FindNextBlocksToDownload 2016-09-07 16:42:42 +02:00
Pieter Wuille b8c79a057c Precompute sighashes
Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
2016-09-07 16:42:41 +02:00
MarcoFalke a9874310c0 [util] CopyrightHolders: Check for untranslated substitution
Also, remove check which is always true
2016-09-07 16:20:36 +02:00
Wladimir J. van der Laan 32d75a7ffc doc: Update build-openbsd for 0.13.0+ and OpenBSD 5.9
- Python 3 now supported.

- Bump boost version to 1.61 - one boost patch no longer needed.

- All checked with OpenBSD 5.9, except for the clang part, I left this
  as-is for someone adventurous.

- Mention overriding resource limits, OpenBSD's default ulimit does not
  suffice for building Bitcoin Core with gcc 4.9.3.
2016-09-07 16:20:09 +02:00
Wladimir J. van der Laan b09e13cb6f build: Updates for OpenBSD
- LevelDB platform was not guessed correctly (it ended up defining
  `-DOS_OPENBSD59` instead of `-DOS_OPENBSD`)

- On OpenBSD there is no convenience link from `python3.5` to `python3`:
  add detection for other python interpreter names.

- If it has to guess the LevelDB OS, print a autoconf warning so that
  the user can check.
2016-09-07 16:19:56 +02:00
MarcoFalke 0e6d753584 [doc] build: Mention curl 2016-09-07 16:18:53 +02:00
Jonas Schnelli f1c0d78b2d [Qt] show network/chain errors in the GUI 2016-09-07 16:18:12 +02:00
Ethan Heilman 2611ad79a5 Added feeler connections increasing good addrs in the tried table.
Tests if addresses are online or offline by briefly connecting to them. These short lived connections are referred to as feeler connections. Feeler connections are designed to increase the number of fresh online addresses in tried by selecting and connecting to addresses in new. One feeler connection is attempted on average once every two minutes.

This change was suggested as Countermeasure 4 in
Eclipse Attacks on Bitcoin’s Peer-to-Peer Network, Ethan Heilman,
Alison Kendler, Aviv Zohar, Sharon Goldberg. ePrint Archive Report
2015/263. March 2015.
2016-09-07 16:17:40 +02:00
Wladimir J. van der Laan 1db3352cc6 qt: Fix random segfault when closing "Choose data directory" dialog
The `pickDataDirectory()` function was calling `exit(0)` to quit
the application when the user closes the dialog without choosing
a data directory.

This is a bad idea because a background thread is created (to
check free space on the drive of the currently selected datadir).
The thread is not stopped and unwound properly, resulting in a potential
race condition somewhere deep in Qt.

So replace the `exit()` by a boolean return value, and let the
stack unwind normally.
2016-09-07 16:17:09 +02:00
Wladimir J. van der Laan 75f2065293 build: Remove check for `openssl/ec.h`
We don't use any elliptic curves from OpenSSL anymore, nor include this
header anywhere but optionally in the tests of secp256k1 (which has
its own autoconf setup).

Reported by sinetek on IRC.
2016-09-07 16:16:00 +02:00
Wladimir J. van der Laan 122fdfdae9
Merge #8600: [0.13.1]: Backport [wallet] rpc: Drop misleading option
526d2b0 [wallet] rpc: Drop misleading option (MarcoFalke)
2016-08-26 13:27:00 +02:00
MarcoFalke 526d2b0472 [wallet] rpc: Drop misleading option
Github-Pull: #8581
Rebased-From: fab5ecb771
2016-08-26 11:30:25 +02:00
Wladimir J. van der Laan f2306fbe01
doc: Clean out release notes after 0.13.0 release 2016-08-25 09:56:12 +02:00
Wladimir J. van der Laan a402396dce
Merge #8490: [0.13] release notes: Mention new relevance of non-mining nodes on network policy; and misc fixes
5e499e7 doc/release-notes: Document changed bytespersigop behaviour (Luke Dashjr)
40d705c doc/release-notes: Mention the relevance of Compact Blocks on non-mining nodes' influence on network policy (Luke Dashjr)
4f55293 doc/release-notes: Misc (Luke Dashjr)
2016-08-17 13:06:57 +02:00
Luke Dashjr 5e499e7a56 doc/release-notes: Document changed bytespersigop behaviour 2016-08-16 12:43:16 +02:00
Luke Dashjr 40d705cb70 doc/release-notes: Mention the relevance of Compact Blocks on non-mining nodes' influence on network policy 2016-08-16 12:42:45 +02:00
Luke Dashjr 4f5529351f doc/release-notes: Misc 2016-08-16 12:42:13 +02:00
Wladimir J. van der Laan 4374f0ee35
Merge #8519: [0.13] A few small improvements to the 0.13 release notes
2f58589 Mention dump/import support for HD wallets (Pieter Wuille)
fe20b83 Remove refactors from list of changes (Pieter Wuille)
7f84015 Inline mempool RPCs and feefilter into misc sections (Pieter Wuille)
2016-08-16 12:22:54 +02:00
Pieter Wuille 2f5858952e Mention dump/import support for HD wallets 2016-08-16 11:17:47 +02:00
Pieter Wuille fe20b83ca9 Remove refactors from list of changes 2016-08-16 11:15:56 +02:00
Pieter Wuille 7f84015352 Inline mempool RPCs and feefilter into misc sections 2016-08-16 11:15:13 +02:00
Wladimir J. van der Laan b52c67c4b1
doc: Update changelog for rc3 2016-08-11 23:27:45 +02:00
Wladimir J. van der Laan 9058617afb
qt: translations update pre-rc3 2016-08-11 23:16:21 +02:00
Luke Dashjr 8b0eee66e9
Bugfix: Use pre-BIP141 sigops until segwit activates
qa/rpc-tests/segwit: Test GBT sigops before and after activation

Github-Pull: #8489
Rebased-From: 160f895a80 239cbd2e5c
2016-08-10 14:59:29 +02:00