aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce whitelisted peers.Pieter Wuille2015-06-271-6/+26
| | | | | | | | | | | | | | | | | | | | | | | This adds a -whitelist option to specify subnet ranges from which peers that connect are whitelisted. In addition, there is a -whitebind option which works like -bind, except peers connecting to it are also whitelisted (allowing a separate listen port for trusted connections). Being whitelisted has two effects (for now): * They are immune to DoS disconnection/banning. * Transactions they broadcast (which are valid) are always relayed, even if they were already in the mempool. This means that a node can function as a gateway for a local network, and that rebroadcasts from the local network will work as expected. Whitelisting replaces the magic exemption localhost had for DoS disconnection (local addresses are still never banned, though), which implied hidden service connects (from a localhost Tor node) were incorrectly immune to DoS disconnection as well. This old behaviour is removed for that reason, but can be restored using -whitelist=127.0.0.1 or -whitelist=::1 can be specified. -whitebind is safer to use in case non-trusted localhost connections are expected (like hidden services).
* error out, when we detect -socks argumentPhilip Kaufmann2015-06-271-0/+6
|
* remove SOCKS4 support from core and GUIPhilip Kaufmann2015-06-271-13/+6
| | | | - now we support SOCKS5 only
* rename fNoListen to fListen and move to netPhilip Kaufmann2015-06-271-2/+2
| | | | | - better code readability and it belongs to net - this is a prerequisite for a pull to add -listen to the GUI
* Introduce -maxoutconnections= to set the maximum number of outbound connectionslangerhans2014-12-201-0/+3
|
* Merge pull request #718 from michilumin/1.8.1-dev-limit-orphan-txRoss Nicoll2014-09-281-0/+2
|\ | | | | 1.8.1 dev limit orphan tx
| * Initial check in of branch for conflict resolutionmichilumin2014-09-271-0/+2
| |
* | key.cpp: fail with a friendlier message on missing ssl EC supportAndrew Poelstra2014-09-181-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously if bitcoind is linked with an OpenSSL which is compiled without EC support, this is seen as an assertion failure "pKey != NULL" at key.cpp:134, which occurs after several seconds. It is an esoteric piece of knowledge to interpret this as "oops, I linked with the wrong OpenSSL", and because of the delay it may not even be noticed. The new output is : OpenSSL appears to lack support for elliptic curve cryptography. For more information, visit https://en.bitcoin.it/wiki/OpenSSL_and_EC_Libraries : Initialization sanity check failed. Bitcoin Core is shutting down. which occurs immediately after attempted startup. This also blocks in an InitSanityCheck() function which currently only checks for EC support but should eventually do more. See #4081.
* | Merge pull request #674 from rnicoll/1.8.1-dev-networkinglangerhans2014-08-311-1/+2
|\ \ | | | | | | Apply network related changes from 0.9.3
| * | Avoid querying DNS seeds, if we have open connections.Jeff Garzik2014-08-281-1/+2
| |/ | | | | | | The goal is to increase independence and privacy.
* / In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLETZak Wilcox2014-08-281-1/+3
|/ | | | Rebased-From: a7e1d50
* Switch stdout to line bufferingshshshsh2014-06-291-0/+2
| | | | | | | | Use line buffering (instead of block buffering) so that messages arrive immediately in systemd-journald, tail -f debug.log, and the like. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 283e405
* Remove build-time no-IPv6 settingWladimir J. van der Laan2014-06-291-10/+0
| | | | | | | | | | | The year is 2014. All supported operating systems have IPv6 support, most certainly at build time (this doesn't mean that IPv6 is configured, of course). If noone is exercising the functionality to disable it, that means it doesn't get tested, and IMO it's better to get rid of it. (it's also not used consistently in RPC/boost and Net code...)
* Log BerkeleyDB version at startupWladimir J. van der Laan2014-05-291-0/+3
| | | | | | | | | | | | | Prints the actual version of BerkeleyDB that is linked against, if wallet support is enabled. Useful for troubleshooting. For example: 2014-05-01 07:44:02 Using BerkeleyDB version Berkeley DB 4.8.30: (April 9, 2010) 2014-05-01 07:54:25 Using BerkeleyDB version Berkeley DB 5.1.29: (October 25, 20 11)
* nHighTransactionFeeWarning ↵Bardi Harborow2014-05-261-1/+1
| | | | (bitcoin/bitcoin@ffeb47366df02b7f859ce3e64f2304967c837e8e)
* add constant for shared GUI core par settings.Philip Kaufmann2014-05-251-2/+2
|
* Improve command line options outputCozz Lovan2014-05-251-60/+86
|
* Adjust branding in datadir lock error messageMichagogo2014-05-181-1/+1
| | | | | | Conflicts: src/init.cpp
* Reverted accidental change to indentation.Ross Nicoll2014-04-061-1/+1
|
* Reworked fixed change address handling to parse addresses on init and store ↵Ross Nicoll2014-04-061-2/+19
| | | | | | in a vector within the wallet code.
* Document the -change option.Chris Moore2014-04-051-0/+1
| | | | | | Conflicts: src/init.cpp
* Lets get at least dogecoind buildingAlan Westbrook2014-04-051-4/+4
| | | | | This is an Xcode project and a script to wrangle boost to work on the mac.
* warning and documentation changes to match dogecoin feesJannis Froese2014-03-291-1/+1
|
* Updated port numbers to reflect Dogecoin ports.Ross Nicoll2014-03-281-2/+2
|
* Replaced occurrences of "bitcoin" with "dogecoin" or "Dogecoin" as appropriateRoss Nicoll2014-03-281-5/+5
| | | | (specific, use of "Dogecoin" as a noun are now capitalised).
* Replaced references to Bitcoin with Dogecoin/Dogecoin Core as appropriate.Ross Nicoll2014-03-281-5/+5
|
* document -bloomfilters optionJannis Froese2014-03-231-0/+1
|
* Merge branch 'node-bloom-service-bit' of github.com:petertodd/bitcoin into ↵Jannis Froese2014-03-231-0/+5
|\ | | | | | | bloom-todd
| * Add NODE_BLOOM service bit and bump protocol versionPeter Todd2013-10-261-0/+5
| | | | | | | | | | | | | | | | | | | | Lets nodes advertise that they offer bloom filter support explicitly. The protocol version bump allows SPV nodes to assume that NODE_BLOOM is set if NODE_NETWORK is set for pre-70002 nodes. Also adds an undocumented option to turn bloom filter support off for testing purposes. Nodes attempting to use bloom filters are immediately dropped so as to not waste their bandwidth.
* | credit where credit is dueJannis Froese2014-03-221-0/+2
| | | | | | | | (cherry picked from commit 5cdcfa9a2b445dd8f8009f6ff3a8ded4ee6515e6)
* | Protocol changes for Dogecoin 1.5Jannis Froese2014-03-221-0/+4
| | | | | | | | | | | | ported over from Dogecoin and Litecoin (cherry picked from commit 8b09dad2d506fc5a6239863b1c0e33bf7e84da00)
* | Log which wallet is used during initWladimir J. van der Laan2014-03-071-0/+1
| | | | | | | | | | | | | | Now that the wallet can be selected using -wallet it is important to log which wallet is being used for later troubleshooting. Rebased-From: 8a6894ca
* | Get rid of C99 PRI?64 usage in source filesWladimir J. van der Laan2014-02-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amend to d5f1e72. It turns out that BerkelyDB was including inttypes.h indirectly, so we cannot fix this with just macros. Trivial commit: apply the following script to all .cpp and .h files: # Middle sed -i 's/"PRIx64"/x/g' "$1" sed -i 's/"PRIu64"/u/g' "$1" sed -i 's/"PRId64"/d/g' "$1" # Initial sed -i 's/PRIx64"/"x/g' "$1" sed -i 's/PRIu64"/"u/g' "$1" sed -i 's/PRId64"/"d/g' "$1" # Trailing sed -i 's/"PRIx64/x"/g' "$1" sed -i 's/"PRIu64/u"/g' "$1" sed -i 's/"PRId64/d"/g' "$1" After this commit, `git grep` for PRI.64 should turn up nothing except the defines in util.h.
* | Don't use PRIx64 formatting derives from inttypes.hWladimir J. van der Laan2014-02-221-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | As the tinyformat-based formatting system (introduced in b77dfdc) is type-safe, no special format characters are needed to specify sizes. Tinyformat can support (ignore) the C99 prefixes such as "ll" but chokes on MSVC's inttypes.h defines prefixes such as "I64X". So don't include inttypes.h and define our own for compatibility. (an alternative would be to sweep the entire codebase using sed -i to get rid of the size specifiers but this has less diff impact)
* | add constants for shared (GUI/core) -dbcache settingsPhilip Kaufmann2014-02-171-4/+6
| | | | | | | | - adds nDefaultDbCache, nMaxDbCache and nMinDbCache in txdb.h
* | Increase default dbcache to 100 MiBPieter Wuille2014-02-171-2/+2
| |
* | Merge pull request #3643Wladimir J. van der Laan2014-02-171-1/+5
|\ \ | | | | | | | | | d54e819 Log warnings when bootstrap files are specified but cannot be opened (Wladimir J. van der Laan)
| * | Log warnings when bootstrap files are specified but cannot be openedWladimir J. van der Laan2014-02-091-1/+5
| | | | | | | | | | | | | | | | | | | | | - Log a warning when bootstrap files are specified using `-loadblock` but cannot be opened. - Log a warning when bootstrap.dat exists in the home directory but cannot be opened.
* | | Merge pull request #3646Wladimir J. van der Laan2014-02-161-1/+1
|\ \ \ | | | | | | | | | | | | 5770254 Copyright header updates s/2013/2014 on files whose last git commit was done in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does. (gubatron)
| * | | Copyright header updates s/2013/2014 on files whose last git commit was done ↵gubatron2014-02-091-1/+1
| |/ / | | | | | | | | | | | | | | | in 2014. contrib/devtools/fix-copyright-headers.py script to be able to perform this maintenance task with ease during the rest of the year, every year. Modifications to contrib/devtools/README.md to document what fix-copyright-headers.py does.
* | | Add -zapwallettxes cli/config option, used for wallet recoveryJeff Garzik2014-02-141-0/+21
| | | | | | | | | | | | | | | This diagnostic tool removes all "tx" records from the wallet db, then forces a full rescan, to rebuild "tx" records accurately.
* | | Add option to avoid spending unconfirmed changeWladimir J. van der Laan2014-02-111-0/+2
|/ /
* | Merge pull request #3588Wladimir J. van der Laan2014-01-301-9/+17
|\ \ | | | | | | | | | df966d1 log parameter interactions to debug.log (Philip Kaufmann)
| * | log parameter interactions to debug.logPhilip Kaufmann2014-01-271-9/+17
| | |
* | | Prepare block connection logic for headers-first.Pieter Wuille2014-01-271-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the block processing logic from "try to atomically switch to a new block" to a continuous "(dis)connect a block, aiming for the assumed best chain". This means the smallest atomic operations on the chainstate become individual block connections or disconnections, instead of entire reorganizations. It may mean that we try to reorganize to one block, fail, and rereorganize again to the old block. This is slower, but doesn't require unbounded RAM. It also means that a ConnectBlock which fails may be no longer called from the ProcessBlock which knows which node sent it. To deal with that, a mapBlockSource is kept, and invalid blocks cause asynchronous "reject" messages and banning (if necessary).
* | Remove redundant .c_str()sWladimir J. van der Laan2014-01-231-22/+22
| | | | | | | | | | | | | | After the tinyformat switch sprintf() family functions support passing actual std::string objects. Remove unnecessary c_str calls (236 of them) in logging and formatting.
* | Merge pull request #3449Wladimir J. van der Laan2014-01-081-13/+3
|\ \ | | | | | | | | | 8b9adca Allow `-noserver` with bitcoind (Wladimir J. van der Laan)
| * | Allow `-noserver` with bitcoindWladimir J. van der Laan2013-12-201-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | Allow running bitcoind without server. - Default to -server mode (of course) for bitcoind with SoftSetBoolArg - Remove fForceServer argument from AppInit2 - Move fDaemon to a static variable in bitcoind
* | | Merge pull request #3427Wladimir J. van der Laan2013-12-231-2/+2
|\ \ \ | |/ / |/| | | | | 1ad2636 qt: Prevent non-functional GUI from popping up during Init (Wladimir J. van der Laan)
| * | qt: Prevent non-functional GUI from popping up during InitWladimir J. van der Laan2013-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | When a InitError or InitWarning happens, the GUI pops up but is unusable (until Init finishes). This is caused by showNormalIfMinimized. Add a message flag to skip this call for Init errors or warnings.