aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge #8688: Move static global randomizer seeds into CConnmanWladimir J. van der Laan2016-09-191-1/+1
|\ | | | | | | d9ff591 Move static global randomizer seeds into CConnman (Pieter Wuille)
| * Move static global randomizer seeds into CConnmanPieter Wuille2016-09-191-1/+1
| |
* | Merge #8707: net: fix maxuploadtarget settingWladimir J. van der Laan2016-09-191-1/+7
|\ \ | |/ |/| | | f3552da net: fix maxuploadtarget setting (Cory Fields)
| * net: fix maxuploadtarget settingCory Fields2016-09-141-1/+7
| | | | | | | | | | | | | | | | | | 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 #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: only delete CConnman if it's been createdCory Fields2016-09-131-1/+0
| | | | | | | | | | | | | | | | 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.
* | Merge #8085: p2p: Begin encapsulationWladimir J. van der Laan2016-09-091-12/+42
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-0/+1
| | |
| * | net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::OptionsCory Fields2016-09-081-0/+2
| | |
| * | net: Introduce CConnection::Options to avoid passing so many paramsCory Fields2016-09-081-2/+9
| | |
| * | net: Drop StartNode/StopNode and use CConnman directlyCory Fields2016-09-081-2/+8
| | |
| * | net: pass CClientUIInterface into CConnmanCory Fields2016-09-081-1/+1
| | |
| * | net: Pass best block known height into CConnmanCory Fields2016-09-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-2/+3
| | |
| * | net: move nLocalServices/nRelevantServices to CConnmanCory Fields2016-09-081-1/+4
| | | | | | | | | | | | | | | 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 send/recv statistics to CConnmanCory Fields2016-09-081-1/+1
| | |
| * | net: move whitelist functions into CConnmanCory Fields2016-09-081-1/+1
| | |
| * | net: Add oneshot functions to CConnmanCory Fields2016-09-081-1/+1
| | |
| * | net: Move socket binding into CConnmanCory Fields2016-09-081-6/+6
| | |
| * | net: Create CConnman to encapsulate p2p connectionsCory Fields2016-09-081-2/+12
| | |
* | | add waitfornewblock/waitforblock/waitforblockheight rpcs and use them for testsCory Fields2016-09-071-0/+8
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | waitfornewblock waits until a new block is received, or the timeout expires, then returns the current block height/hash. waitforblock waits for a specific blockhash, or until the timeout expires, then returns the current block height/hash. If the target blockhash is the current tip, it will return immediately. waitforblockheight waits until the tip has reached a certain height or higher, then returns the current height and hash. waitforblockheight is used to avoid polling in the rpc tests.
* | C++11: s/boost::scoped_ptr/std::unique_ptr/Jorge Timón2016-09-011-1/+1
| |
* | Merge #8607: [doc] Fix doxygen off-by-one comments, fix typosWladimir J. van der Laan2016-08-281-1/+1
|\ \ | | | | | | | | | | | | | | | | | | fafe7b3 contrib: Make fix-copyright-headers.py more portable (MarcoFalke) fa27c0a [doc] Fix typos in comments, doxygen: Fix comment syntax (MarcoFalke) fabfd5d [qa] pull-tester: Don't mute zmq ImportError (MarcoFalke) 67a5502 init: Fix typo in help message for -whitelistforcerelay (Wladimir J. van der Laan)
| * | init: Fix typo in help message for -whitelistforcerelayWladimir J. van der Laan2016-08-221-1/+1
| | | | | | | | | | | | Reported by pryds on Transifex in the Danish translation.
* | | Remove unused variablesMarcoFalke2016-08-251-1/+1
| | |
* | | Merge #8445: Move CWallet::setKeyPool to private section of CWallet.Wladimir J. van der Laan2016-08-241-9/+0
|\ \ \ | | | | | | | | | | | | | | | | 8680d3a Move wallet initialization logic from AppInit2 to CWallet::InitLoadWallet (Patrick Strateman) e86eb71 Move CWallet::setKeyPool to private section of CWallet (Patrick Strateman)
| * | | Move wallet initialization logic from AppInit2 to CWallet::InitLoadWalletPatrick Strateman2016-08-201-12/+0
| | | |
| * | | Move CWallet::setKeyPool to private section of CWalletPatrick Strateman2016-08-171-3/+6
| | | |
* | | | Merge #8505: Trivial: Fix typos in various filesWladimir J. van der Laan2016-08-171-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 1aacfc2 various typos (leijurv)
| * | | | various typosleijurv2016-08-141-1/+1
| | |_|/ | |/| |
* | | | remove no-longer-used InitError logicinstagibbs2016-08-151-4/+0
| | | |
* | | | Merge #8192: [trivial] Remove URLs from About dialog translationsJonas Schnelli2016-08-151-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | 208d37f [trivial] Remove URLs from About dialog translations (fanquake)
| * | | | [trivial] Remove URLs from About dialog translationsfanquake2016-07-211-3/+3
| | | | |
* | | | | Merge #8128: Net: Turn net structures into dumb storage classesWladimir J. van der Laan2016-08-151-3/+7
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9e9d644 net: fixup nits (Cory Fields) 8945384 net: Have LookupNumeric return a CService directly (Cory Fields) 21ba407 net: narrow include scope after moving to netaddress (Cory Fields) 21e5b96 net: move CNetAddr/CService/CSubNet out of netbase (Cory Fields) 1017b8a net: Add direct tests for new CSubNet constructors (Cory Fields) b6c3ff3 net: Split resolving out of CSubNet (Cory Fields) f96c7c4 net: Split resolving out of CService (Cory Fields) 31d6b1d net: Split resolving out of CNetAddr (Cory Fields)
| * | | | net: Have LookupNumeric return a CService directlyCory Fields2016-08-041-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also fix up a few small issues: - Lookup with "badip:port" now sets the port to 0 - Don't allow assert to have side-effects
| * | | | net: narrow include scope after moving to netaddressCory Fields2016-07-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Net functionality is no longer needed for CAddress/CAddrman/etc. now that CNetAddr/CService/CSubNet are dumb storage classes.
| * | | | net: Split resolving out of CSubNetCory Fields2016-07-311-1/+2
| | | | |
| * | | | net: Split resolving out of CServiceCory Fields2016-07-311-2/+6
| | |/ / | |/| |
* | | | Merge #8392: Fix several node initialization issuesWladimir J. van der Laan2016-08-041-13/+33
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 9d4eb9a Do diskspace check before import thread is started (Pieter Wuille) aa59f2e Add extra message to avoid a long 'Loading banlist' (Pieter Wuille) 0fd2a33 Use a signal to continue init after genesis activation (Pieter Wuille)
| * | | | Do diskspace check before import thread is startedPieter Wuille2016-07-301-3/+3
| | | | |
| * | | | Use a signal to continue init after genesis activationPieter Wuille2016-07-301-10/+30
| |/ / /
* | | | Do not shadow previous local variablePavel Janík2016-08-021-3/+3
| | | |
* | | | Trivial: bip -> BIP in help text and commentPavel Janík2016-08-021-2/+2
| | | |
* | | | Allow changing BIP9 parameters on regtestSuhas Daftuar2016-07-291-0/+36
|/ / /
* / / Treat high-sigop transactions as larger rather than rejecting themPieter Wuille2016-07-191-1/+1
|/ /
* | Rename "block cost" to "block weight"Suhas Daftuar2016-07-181-1/+1
| |
* | mining: Improve `-blockmaxcost` help messageWladimir J. van der Laan2016-07-181-1/+1
| | | | | | | | One-word replacement to #8354.
* | Merge #8295: Mining-related fixups for 0.13.0Wladimir J. van der Laan2016-07-181-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | c1d61fb Add warning if -blockminsize is used. (Suhas Daftuar) 27362dd Remove -blockminsize option (Suhas Daftuar) d2e46e1 Remove addScoreTxs() (Suhas Daftuar) 6dd4bc2 Exclude witness transactions in addPackageTxs() pre-segwit activation (Suhas Daftuar) f15c2cd CreateNewBlock: add support for size-accounting to addPackageTxs (Suhas Daftuar)
| * | Add warning if -blockminsize is used.Suhas Daftuar2016-07-051-0/+3
| | |