aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* qt: askpassphrasedialog: Clear pass fields on acceptPavel Vasin2016-05-192-4/+18
| | | | | This is usability improvement in a case if user gets re-asked passphrase. (e.g. made a typo)
* Merge #8070: Remove non-determinism which is breaking net_tests #8069Wladimir J. van der Laan2016-05-191-1/+10
|\ | | | | | | | | 2a8b358 Fix typo adddrman to addrman as requested in #8070 (Ethan Heilman) f4119c6 Remove non-determinism which is breaking net_tests #8069 (EthanHeilman)
| * Fix typo adddrman to addrman as requested in #8070Ethan Heilman2016-05-181-1/+1
| |
| * Remove non-determinism which is breaking net_tests #8069EthanHeilman2016-05-181-0/+9
| |
* | Merge #8033: Fix Socks5() connect failures to be less noisy and less ↵Wladimir J. van der Laan2016-05-191-15/+22
|\ \ | |/ |/| | | | | | | | | | | | | unnecessarily scary bf9266e Use Socks5ErrorString() to decode error responses from socks proxy. (Warren Togami) 94fd1d8 Make Socks5() InterruptibleRecv() timeout/failures informative. (Warren Togami) 0d9af79 SOCKS5 connecting and connected messages with -debug=net. (Warren Togami) 00678bd Make failures to connect via Socks5() more informative and less unnecessarily scary. (Warren Togami)
| * Use Socks5ErrorString() to decode error responses from socks proxy.Warren Togami2016-05-191-12/+16
| |
| * Make Socks5() InterruptibleRecv() timeout/failures informative.Warren Togami2016-05-171-1/+2
| | | | | | | | | | | | | | | | Before: 2016-05-16 06:10:45 ERROR: Error reading proxy response After: 2016-05-16 06:10:45 Socks5() connect to k7s5d6jqig4ej4v4.onion:18333 failed: InterruptibleRecv() timeout or other failure
| * SOCKS5 connecting and connected messages with -debug=net.Warren Togami2016-05-091-2/+2
| | | | | | | | They were too noisy and not necessary for normal operation.
| * Make failures to connect via Socks5() more informative and less ↵Warren Togami2016-05-091-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | unnecessarily scary. * The "ERROR" was printed far too often during normal operation for what was not an error. * Makes the Socks5() connect failure similar to the IP connect failure in debug.log. Before: `2016-05-09 00:15:00 ERROR: Proxy error: host unreachable` After: `2016-05-09 00:15:00 Socks5() connect to t6xj6wilh4ytvcs7.onion:18333 failed: host unreachable"`
* | Merge #7917: Optimize reindexWladimir J. van der Laan2016-05-1811-45/+116
|\ \ | | | | | | | | | | | | | | | | | | | | | b4d24e1 Report reindexing progress in GUI (Pieter Wuille) d3d7547 Add -reindex-chainstate that does not rebuild block index (Pieter Wuille) fb8fad1 Optimize ActivateBestChain for long chains (Pieter Wuille) 316623f Switch reindexing to AcceptBlock in-loop and ActivateBestChain afterwards (Pieter Wuille) d253ec4 Make ProcessNewBlock dbp const and update comment (Pieter Wuille)
| * | Report reindexing progress in GUIPieter Wuille2016-05-179-19/+79
| | |
| * | Add -reindex-chainstate that does not rebuild block indexPieter Wuille2016-05-171-3/+5
| | |
| * | Optimize ActivateBestChain for long chainsPieter Wuille2016-05-171-4/+10
| | |
| * | Switch reindexing to AcceptBlock in-loop and ActivateBestChain afterwardsPieter Wuille2016-05-172-15/+18
| | |
| * | Make ProcessNewBlock dbp const and update commentPieter Wuille2016-05-172-4/+4
| | |
* | | Merge #8054: net: Avoid duplicate getheaders requests.Wladimir J. van der Laan2016-05-181-1/+8
|\ \ \ | | | | | | | | | | | | f93c2a1 net: Avoid duplicate getheaders requests. (Daniel Kraft)
| * | | net: Avoid duplicate getheaders requests.Daniel Kraft2016-05-151-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current logic for syncing headers may lead to lots of duplicate getheaders requests being sent: If a new block arrives while the node is in headers sync, it will send getheaders in response to the block announcement. When the headers arrive, the message will be of maximum size and so a follow-up request will be sent---all of that in addition to the existing headers syncing. This will create a second "chain" of getheaders requests. If more blocks arrive, this may even lead to arbitrarily many parallel chains of redundant requests. This patch changes the behaviour to only request more headers after a maximum-sized message when it contained at least one unknown header. This avoids sustaining parallel chains of redundant requests. Note that this patch avoids the issues raised in the discussion of https://github.com/bitcoin/bitcoin/pull/6821: There is no risk of the node being permanently blocked. At the latest when a new block arrives this will trigger a new getheaders request and restart syncing.
* | | | Merge #7906: net: prerequisites for p2p encapsulation changesWladimir J. van der Laan2016-05-184-146/+117
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5d5e7a0 net: No need to export ConnectNode (Cory Fields) e9ed620 net: No need to export DumpBanlist (Cory Fields) 8b8f877 net: make Ban/Unban/ClearBan functionality consistent (Cory Fields) cca221f net: Drop CNodeRef for AttemptToEvictConnection (Cory Fields) 563f375 net: use the exposed GetNodeSignals() rather than g_signals directly (Cory Fields) 9faa490 net: remove unused set (Cory Fields) 52cbce2 net: don't import std namespace (Cory Fields)
| * | | | net: No need to export ConnectNodeCory Fields2016-05-101-1/+0
| | | | |
| * | | | net: No need to export DumpBanlistCory Fields2016-05-102-22/+20
| | | | |
| * | | | net: make Ban/Unban/ClearBan functionality consistentCory Fields2016-05-103-26/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Ban/Unban/ClearBan call uiInterface.BannedListChanged() as necessary - Ban/Unban/ClearBan sync to disk if the operation is user-invoked - Mark node for disconnection automatically when banning - Lock cs_vNodes while setting disconnected - Don't spin in a tight loop while setting disconnected
| * | | | net: Drop CNodeRef for AttemptToEvictConnectionCory Fields2016-05-051-53/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Locking for each operation here is unnecessary, and solves the wrong problem. Additionally, it introduces a problem when cs_vNodes is held in an owning class, to which invididual CNodeRefs won't have access. These should be weak pointers anyway, once vNodes contain shared pointers. Rather than using a refcounting class, use a 3-step process instead. 1. Lock vNodes long enough to snapshot the fields necessary for comparing 2. Unlock and do the comparison 3. Re-lock and mark the resulting node for disconnection if it still exists
| * | | | net: use the exposed GetNodeSignals() rather than g_signals directlyCory Fields2016-05-051-3/+3
| | | | |
| * | | | net: remove unused setCory Fields2016-05-051-10/+0
| | | | |
| * | | | net: don't import std namespaceCory Fields2016-05-051-32/+31
| | | | | | | | | | | | | | | | | | | | | | | | | This file is about to be broken up into chunks and moved around. Drop the namespace now rather than requiring other files to use it.
* | | | | Merge #7932: CAddrMan::Deserialize handle corrupt serializations better.Wladimir J. van der Laan2016-05-181-0/+8
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | fb26bf0 CAddrMan::Deserialize handle corrupt serializations better. (Patrick Strateman)
| * | | | | CAddrMan::Deserialize handle corrupt serializations better.Patrick Strateman2016-04-241-0/+8
| | | | | |
* | | | | | Merge #8020: Use SipHash-2-4 for various non-cryptographic hashesWladimir J. van der Laan2016-05-189-88/+166
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a68ec21 Use SipHash-2-4 for address relay selection (Pieter Wuille) 8cc9cfe Switch CTxMempool::mapTx to use a hash index for txids (Pieter Wuille) 382c871 Use SipHash-2-4 for CCoinsCache index (Pieter Wuille) 0b1295b Add SipHash-2-4 primitives to hash (Pieter Wuille)
| * | | | | | Use SipHash-2-4 for address relay selectionPieter Wuille2016-05-171-11/+9
| | | | | | |
| * | | | | | Switch CTxMempool::mapTx to use a hash index for txidsPieter Wuille2016-05-171-1/+2
| | | | | | |
| * | | | | | Use SipHash-2-4 for CCoinsCache indexPieter Wuille2016-05-174-76/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is ~1.7x slower than the Lookup3-of-Xor-with-salt construct we were using before, but it is a primitive designed for exactly this.
| * | | | | | Add SipHash-2-4 primitives to hashPieter Wuille2016-05-174-0/+142
| | | | | | |
* | | | | | | Merge #7696: Fix de-serialization bug where AddrMan is left corruptedPieter Wuille2016-05-174-0/+146
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 1475ecf Fix de-serialization bug where AddrMan is corrupted after exception * CAddrDB modified so that when de-serialization code throws an exception Addrman is reset to a clean state * CAddrDB modified to make unit tests possible * Regression test created to ensure bug is fixed * StartNode modifed to clear adrman if CAddrDB::Read returns an error code. (EthanHeilman)
| * | | | | | | Fix de-serialization bug where AddrMan is corrupted after exceptionEthanHeilman2016-05-044-0/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * CAddrDB modified so that when de-serialization code throws an exception Addrman is reset to a clean state * CAddrDB modified to make unit tests possible * Regression test created to ensure bug is fixed * StartNode modifed to clear adrman if CAddrDB::Read returns an error code.
* | | | | | | | Merge #8038: [qa, doc] Various minor fixesMarcoFalke2016-05-171-3/+1
|\ \ \ \ \ \ \ \ | |_|/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fa83a5d [qa] wallet: Temporarily disable salvagewallet test (MarcoFalke) fadd048 [doc] Link to clang-format in the developer notes (MarcoFalke) fa72f7d [doc] Remove outdated line from listunspent RPC help, fix typo (MarcoFalke) ac40ed7 Increase timeout waiting for pruned blk00000.dat (error10)
| * | | | | | | [doc] Remove outdated line from listunspent RPC help, fix typoMarcoFalke2016-05-101-3/+1
| | | | | | | |
* | | | | | | | Merge #7994: Add op csv tests to script_tests.jsonPieter Wuille2016-05-171-1/+10
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | 10e83d7 Adding basic tests for OP_CSV inside of script_tests.json (Chris Stewart)
| * | | | | | | Adding basic tests for OP_CSV inside of script_tests.jsonChris Stewart2016-05-111-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing NOP3 op name to OP_CHECKSEQUENCEVERIFY, renaming instances of OP_NOP3 in script_tests.json to CHECKSEQUENCEVERIFY Cleaning up NOP3 comment Re-adding test cases that were accidentally deleted, removing dupicated test case, fixing formatting Removing re-labeling of OP_NOP3 to OP_CSV Fixing whitespace issues
* | | | | | | | Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.Gregory Maxwell2016-05-167-25/+17
| |_|_|_|_|/ / |/| | | | | |
* | | | | | | Merge #8046: [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSXJonas Schnelli2016-05-121-0/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 34ebceb [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSX (Jonas Schnelli)
| * | | | | | | [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSXJonas Schnelli2016-05-121-0/+1
| | | | | | | |
* | | | | | | | Merge #8006: Qt: Add option to disable the system tray iconWladimir J. van der Laan2016-05-127-2/+65
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 8b0e497 Qt: Add option to hide the system tray icon (Tyler Hardin)
| * | | | | | | | Qt: Add option to hide the system tray iconTyler Hardin2016-05-117-2/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My changes leave all tray icon and menu creation/initialization logic untouched. It only shows or hides the icon according to the setting. A new checkbox was added to the OptionsDialog under the Window tab. A bool option named "hideTrayIcon" was added to OptionsModel. This checkbox was mapped like other all options to the OptionsModel. A signal was added to the OptionsModel for broadcasting changes the the hideTrayIcon option. This signal was connected to a new slot added to BitcoinGUI named setTrayIconVisible(bool). The slot simply hides or shows the trayIcon in BitcoinGUI according to the parameter recieved.
* | | | | | | | | Merge #8004: signal handling: fReopenDebugLog and fRequestShutdown should be ↵Wladimir J. van der Laan2016-05-123-3/+7
|\ \ \ \ \ \ \ \ \ | |_|/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type sig_atomic_t 3262316 fReopenDebugLog and fRequestShutdown should be type sig_atomic_t (Chirag Davé)
| * | | | | | | | fReopenDebugLog and fRequestShutdown should be type sig_atomic_tChirag Davé2016-05-093-3/+7
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows access as an atomic variable in the presence of async interrupts. See issue #7433 for more details fixes: #7433
* | | | | | | | bench: Add crypto hash benchmarksWladimir J. van der Laan2016-05-112-1/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add benchmarks for the cryptographic hash algorithms: - RIPEMD160 - SHA1 - SHA256 - SHA512 Continues work on #7883.
* | | | | | | | Merge #8028: Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDiskWladimir J. van der Laan2016-05-104-18/+10
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 0fd5997 Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDisk (Patrick Strateman)
| * | | | | | | | Fix insanity of CWalletDB::WriteTx and CWalletTx::WriteToDiskPatrick Strateman2016-05-094-18/+10
| | | | | | | | |
* | | | | | | | | init: Move berkeleydb version reporting to walletWladimir J. van der Laan2016-05-102-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the version reporting to Wallet::Verify, before starting verification of the wallet. This removes the dependency of init on a specific wallet database library. A further, trivial step towards resolving #7965.
* | | | | | | | | Merge #8019: Remove state arg from ReconsiderBlock, rename to ↵Wladimir J. van der Laan2016-05-103-7/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ResetBlockFailureFlags 657e07e Rename ReconsiderBlock func to reflect real behavior (instagibbs) addb9d2 Remove state arg from ReconsiderBlock (instagibbs)