aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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
| | |
| * | Remove -blockminsize optionSuhas Daftuar2016-06-301-1/+0
| |/
* | Merge #8273: Bump `-dbcache` default to 300MiBWladimir J. van der Laan2016-07-061-2/+2
|\ \ | | | | | | | | | | | | efd1d83 doc: Mention dbcache increase in release notes (Wladimir J. van der Laan) 32cab91 Bump `-dbcache` default to 300MiB (Wladimir J. van der Laan)
| * | Bump `-dbcache` default to 300MiBWladimir J. van der Laan2016-07-061-2/+2
| |/ | | | | | | | | | | | | Also cap the allocation for the leveldb-specific cache for the UTXO set to 8MiB. This avoids that the extra cache memory goes to the much less effective leveldb cache instead of our application-level cache.
* | Merge #8275: Remove bad chain alert partition checkWladimir J. van der Laan2016-07-061-6/+0
|\ \ | | | | | | | | | ab8be98 Remove bad chain alert partition check (BtcDrak)
| * | Remove bad chain alert partition checkBtcDrak2016-06-141-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As per meeting 2016-03-31 https://bitcoincore.org/en/meetings/2016/03/31/#bad-chain-alerts The partition checker was producing huge number of false-positives and was disabled in 0.12.1 on the understanding it would either be fixed in 0.13 or removed entirely from master if not.
* | | Merge #8257: Do not ask a UI question from bitcoindWladimir J. van der Laan2016-06-281-1/+2
|\ \ \ | |_|/ |/| | | | | 1acf1db Do not ask a UI question from bitcoind (Pieter Wuille)
| * | Do not ask a UI question from bitcoindPieter Wuille2016-06-241-1/+2
| | |
* | | Add rewind logic to deal with post-fork software updatesPieter Wuille2016-06-221-0/+8
| | | | | | | | | | | | Includes logic for dealing with pruning by Suhas Daftuar.
* | | BIP141: Other consensus critical limits, and BIP145Pieter Wuille2016-06-221-0/+1
| | | | | | | | | | | | Includes changes by Suhas Daftuar, Luke-jr, and mruddy.
* | | BIP144: Handshake and relay (receiver side)Pieter Wuille2016-06-221-0/+12
|/ / | | | | | | | | | | Service bit logic by Nicolas Dorier. Only download blocks from witness peers after fork.
* / [doc] Add website links to about dialogMarcoFalke2016-06-161-1/+10
|/
* Introduce enum ServiceFlags for service flagsPieter Wuille2016-06-131-2/+2
|
* build: Get rid of `CLIENT_DATE`Wladimir J. van der Laan2016-06-091-1/+1
| | | | | | | Putting the build date in the executable is a practice that has no place in these days, now that deterministic building is increasingly common. Continues #7732 which did this for the GUI.