aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge #8700: [copyright] add MIT license headers to .sh scripts where missingWladimir J. van der Laan2016-09-201-0/+4
|\ | | | | | | 0766d1c [copyright] add MIT license headers to .sh scripts where missing (isle2983)
| * [copyright] add MIT license headers to .sh scripts where missingisle29832016-09-111-0/+4
| | | | | | | | Years are set according to 'git log' history
* | Merge #8688: Move static global randomizer seeds into CConnmanWladimir J. van der Laan2016-09-197-24/+34
|\ \ | | | | | | | | | d9ff591 Move static global randomizer seeds into CConnman (Pieter Wuille)
| * | Move static global randomizer seeds into CConnmanPieter Wuille2016-09-197-24/+34
| | |
* | | Merge #8737: Trivial: UndoReadFromDisk works on undo files (rev), not on ↵Wladimir J. van der Laan2016-09-191-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | block files. b4fb512 UndoReadFromDisk works on undo files (rev), not on block files. (Pavel Janík)
| * | | UndoReadFromDisk works on undo files (rev), not on block files.Pavel Janík2016-09-151-1/+1
| | | |
* | | | Merge #8707: net: fix maxuploadtarget settingWladimir J. van der Laan2016-09-193-3/+14
|\ \ \ \ | | | | | | | | | | | | | | | f3552da net: fix maxuploadtarget setting (Cory Fields)
| * | | | net: fix maxuploadtarget settingCory Fields2016-09-143-3/+14
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was broken by 63cafa6329e1a. Note that while this fixes the settings, it doesn't fix the actual usage of -maxuploadtarget completely, as there is currently a bug in the nOptimisticBytesWritten accounting that causes a delayed response if the target is reached. That bug will be addressed separately.
* | | | Merge #8742: Specify Protobuf version 2 in paymentrequest.protoWladimir J. van der Laan2016-09-191-0/+2
|\ \ \ \ | |_|/ / |/| | | | | | | c4084c2 Specify Protobuf version 2 in paymentrequest.proto (fanquake)
| * | | Specify Protobuf version 2 in paymentrequest.protofanquake2016-09-161-0/+2
| |/ /
* | | Merge #8494: [init, wallet] ParameterInteraction() iff wallet enabledWladimir J. van der Laan2016-09-191-1/+1
|\ \ \ | | | | | | | | | | | | fa5d276 [init] ParameterInteraction() iff wallet enabled (MarcoFalke)
| * | | [init] ParameterInteraction() iff wallet enabledMarcoFalke2016-08-101-1/+1
| | | |
* | | | net: No longer send local address in addrMeWladimir J. van der Laan2016-09-151-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | After #8594 the addrFrom sent by a node is not used anymore at all, so don't bother sending it. Also mitigates the privacy issue in (#8616). It doesn't completely solve the issue as GetLocalAddress is also called in AdvertiseLocal, but at least when advertising addresses it stands out less as *our* address.
* | | Merge #8715: net: only delete CConnman if it's been createdWladimir J. van der Laan2016-09-142-1/+1
|\ \ \ | | | | | | | | | | | | 36fa01f net: only delete CConnman if it's been created (Cory Fields)
| * | | net: only delete CConnman if it's been createdCory Fields2016-09-132-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the case of (for example) an already-running bitcoind, the shutdown sequence begins before CConnman has been created, leading to a null-pointer dereference when g_connman->Stop() is called. Instead, Just let the CConnman dtor take care of stopping.
* | | | Remove maxuploadtargets recommended minimumJonas Schnelli2016-09-131-4/+0
|/ / /
* | | Merge #8693: add witness address to address bookWladimir J. van der Laan2016-09-131-0/+2
|\ \ \ | | | | | | | | | | | | 62ffbbd add witness address to address book (instagibbs)
| * | | add witness address to address bookinstagibbs2016-09-091-0/+2
| | | |
* | | | Merge #8699: Remove createwitnessaddress RPC commandWladimir J. van der Laan2016-09-131-38/+0
|\ \ \ \ | | | | | | | | | | | | | | | 86c3f8d Remove createwitnessaddress (Johnson Lau)
| * | | | Remove createwitnessaddressJohnson Lau2016-09-131-38/+0
| | |_|/ | |/| | | | | | | | | | This RPC command is unsafe as it will return an address even if the script is invalid.
* | | | Merge #8601: Add option to opt into full-RBF when sending funds (rebase, ↵Wladimir J. van der Laan2016-09-132-3/+15
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | original by petertodd) 86726d8 Rename `-optintofullrbf` option to `-walletrbf` (Wladimir J. van der Laan) 05fa823 wallet: Add BIP125 comment for MAXINT-1/-2 behavior (Wladimir J. van der Laan) 152f45b Add option to opt into full-RBF when sending funds (Peter Todd)
| * | | | Rename `-optintofullrbf` option to `-walletrbf`Wladimir J. van der Laan2016-09-132-7/+7
| | | | | | | | | | | | | | | | | | | | This makes it clear that this is a wallet option.
| * | | | wallet: Add BIP125 comment for MAXINT-1/-2 behaviorWladimir J. van der Laan2016-08-261-0/+6
| | | | |
| * | | | Add option to opt into full-RBF when sending fundsPeter Todd2016-08-262-3/+9
| | | | |
* | | | | fix op order to append first alertrodasmith2016-09-101-2/+2
| |/ / / |/| | |
* | | | Merge #8678: [Qt][CoinControl] fix UI bug that could result in paying ↵Jonas Schnelli2016-09-091-1/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | unexpected fee 0480293 [Qt][CoinControl] fix UI bug that could result in paying unexpected fee (Jonas Schnelli)
| * | | | [Qt][CoinControl] fix UI bug that could result in paying unexpected feeJonas Schnelli2016-09-071-1/+4
| | |/ / | |/| |
* | | | Merge #8681: Performance Regression Fix: Pre-Allocate txChanged vectorPieter Wuille2016-09-091-4/+7
|\ \ \ \ | | | | | | | | | | | | | | | ec81881 Performance Regression Fix: Pre-Allocate txChanged vector (Jeremy Rubin)
| * | | | Performance Regression Fix: Pre-Allocate txChanged vectorJeremy Rubin2016-09-071-4/+7
| | | | |
* | | | | Merge #8664: Fix segwit-related wallet bugWladimir J. van der Laan2016-09-091-0/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | c40b034 Clear witness with vin/vout in CWallet::CreateTransaction() (Suhas Daftuar)
| * | | | | Clear witness with vin/vout in CWallet::CreateTransaction()Suhas Daftuar2016-09-041-0/+1
| | | | | |
* | | | | | Merge #8085: p2p: Begin encapsulationWladimir J. van der Laan2016-09-0932-903/+1381
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0103c5b net: move MAX_FEELER_CONNECTIONS into connman (Cory Fields) e700cd0 Convert ForEachNode* functions to take a templated function argument rather than a std::function to eliminate std::function overhead (Jeremy Rubin) d1a2295 Made the ForEachNode* functions in src/net.cpp more pragmatic and self documenting (Jeremy Rubin) 98591c5 net: move vNodesDisconnected into CConnman (Cory Fields) fa2f8bc net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options (Cory Fields) a19553b net: Introduce CConnection::Options to avoid passing so many params (Cory Fields) bafa5fc net: Drop StartNode/StopNode and use CConnman directly (Cory Fields) e81a602 net: pass CClientUIInterface into CConnman (Cory Fields) f60b905 net: Pass best block known height into CConnman (Cory Fields) fdf69ff net: move max/max-outbound to CConnman (Cory Fields) 8a59369 net: move semOutbound to CConnman (Cory Fields) bd72937 net: move nLocalServices/nRelevantServices to CConnman (Cory Fields) be9c796 net: move SendBufferSize/ReceiveFloodSize to CConnman (Cory Fields) 63cafa6 net: move send/recv statistics to CConnman (Cory Fields) adf5d4c net: SocketSendData returns written size (Cory Fields) ee44fa9 net: move messageHandlerCondition to CConnman (Cory Fields) 960cf2e net: move nLocalHostNonce to CConnman (Cory Fields) 551e088 net: move nLastNodeId to CConnman (Cory Fields) 6c19d92 net: move whitelist functions into CConnman (Cory Fields) 53347f0 net: create generic functor accessors and move vNodes to CConnman (Cory Fields) c0569c7 net: Add most functions needed for vNodes to CConnman (Cory Fields) 8ae2dac net: move added node functions to CConnman (Cory Fields) 502dd3a net: Add oneshot functions to CConnman (Cory Fields) a0f3d3c net: move ban and addrman functions into CConnman (Cory Fields) aaf018e net: handle nodesignals in CConnman (Cory Fields) b1a5f43 net: move OpenNetworkConnection into CConnman (Cory Fields) 02137f1 net: Move socket binding into CConnman (Cory Fields) 5b446dd net: Pass CConnection to wallet rather than using the global (Cory Fields) 8d58c4d net: Pass CConnman around as needed (Cory Fields) d7349ca net: Add rpc error for missing/disabled p2p functionality (Cory Fields) cd16f48 net: Create CConnman to encapsulate p2p connections (Cory Fields) d93b14d net: move CBanDB and CAddrDB out of net.h/cpp (Cory Fields) 531214f gui: add NodeID to the peer table (Cory Fields)
| * | | | | | net: move MAX_FEELER_CONNECTIONS into connmanCory Fields2016-09-083-9/+8
| | | | | | |
| * | | | | | Convert ForEachNode* functions to take a templated function argument rather ↵Jeremy Rubin2016-09-082-81/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | than a std::function to eliminate std::function overhead
| * | | | | | Made the ForEachNode* functions in src/net.cpp more pragmatic and self ↵Jeremy Rubin2016-09-087-15/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | documenting
| * | | | | | net: move vNodesDisconnected into CConnmanCory Fields2016-09-082-2/+1
| | | | | | |
| * | | | | | net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::OptionsCory Fields2016-09-083-2/+6
| | | | | | |
| * | | | | | net: Introduce CConnection::Options to avoid passing so many paramsCory Fields2016-09-083-10/+26
| | | | | | |
| * | | | | | net: Drop StartNode/StopNode and use CConnman directlyCory Fields2016-09-083-26/+11
| | | | | | |
| * | | | | | net: pass CClientUIInterface into CConnmanCory Fields2016-09-083-13/+23
| | | | | | |
| * | | | | | net: Pass best block known height into CConnmanCory Fields2016-09-086-31/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CConnman then passes the current best height into CNode at creation time. This way CConnman/CNode have no dependency on main for height, and the signals only move in one direction. This also helps to prevent identity leakage a tiny bit. Before this change, an attacker could theoretically make 2 connections on different interfaces. They would connect fully on one, and only establish the initial connection on the other. Once they receive a new block, they would relay it to your first connection, and immediately commence the version handshake on the second. Since the new block height is reflected immediately, they could attempt to learn whether the two connections were correlated. This is, of course, incredibly unlikely to work due to the small timings involved and receipt from other senders. But it doesn't hurt to lock-in nBestHeight at the time of connection, rather than letting the remote choose the time.
| * | | | | | net: move max/max-outbound to CConnmanCory Fields2016-09-083-18/+22
| | | | | | |
| * | | | | | net: move semOutbound to CConnmanCory Fields2016-09-082-2/+3
| | | | | | |
| * | | | | | net: move nLocalServices/nRelevantServices to CConnmanCory Fields2016-09-087-34/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are in-turn passed to CNode at connection time. This allows us to offer different services to different peers (or test the effects of doing so).
| * | | | | | net: move SendBufferSize/ReceiveFloodSize to CConnmanCory Fields2016-09-083-10/+23
| | | | | | |
| * | | | | | net: move send/recv statistics to CConnmanCory Fields2016-09-086-84/+99
| | | | | | |
| * | | | | | net: SocketSendData returns written sizeCory Fields2016-09-082-2/+5
| | | | | | |
| * | | | | | net: move messageHandlerCondition to CConnmanCory Fields2016-09-082-5/+9
| | | | | | |
| * | | | | | net: move nLocalHostNonce to CConnmanCory Fields2016-09-083-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This behavior seems to have been quite racy and broken. Move nLocalHostNonce into CNode, and check received nonces against all non-fully-connected nodes. If there's a match, assume we've connected to ourself.
| * | | | | | net: move nLastNodeId to CConnmanCory Fields2016-09-084-23/+25
| | | | | | |