aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-1/+1
|
* Merge pull request #4768Wladimir J. van der Laan2014-09-011-1/+1
|\ | | | | | | 2e28031 Perform CVerifyDB on pcoinsdbview instead of pcoinsTip (Wladimir J. van der Laan)
| * Perform CVerifyDB on pcoinsdbview instead of pcoinsTipWladimir J. van der Laan2014-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bypassing the main coins cache allows more thorough checking with the same memory budget. This has no effect on performance because everything ends up in the child cache created by VerifyDB itself. It has bugged me ever since #4675, which effectively reduced the number of checked blocks to reduce peak memory usage. - Pass the coinsview to use as argument to VerifyDB - This also avoids that the first `pcoinsTip->Flush()` after VerifyDB writes a large slew of unchanged coin records back to the database.
* | missing include boost/algorithm/string/replace.hppjtimon2014-08-291-0/+1
| |
* | Merge pull request #4599Jeff Garzik2014-08-291-0/+11
|\ \ | |/ |/|
| * Create new signal for notification of new blocks. Use w/ -blocknotifyJeff Garzik2014-08-141-0/+11
| |
* | Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split up util.cpp/h into: - string utilities (hex, base32, base64): no internal dependencies, no dependency on boost (apart from foreach) - money utilities (parsesmoney, formatmoney) - time utilities (gettime*, sleep, format date): - and the rest (logging, argument parsing, config file parsing) The latter is basically the environment and OS handling, and is stripped of all utility functions, so we may want to rename it to something else than util.cpp/h for clarity (Matt suggested osinterface). Breaks dependency of sha256.cpp on all the things pulled in by util.
* | Remove print() from core functionsWladimir J. van der Laan2014-08-201-2/+1
| | | | | | | | Break dependency on util.
* | Merge pull request #4605Wladimir J. van der Laan2014-08-181-1/+1
|\ \ | |/ |/| | | | | | | | | aa82795 Add detailed network info to getnetworkinfo RPC (Wladimir J. van der Laan) 075cf49 Add GetNetworkName function (Wladimir J. van der Laan) c91a947 Add IsReachable(net) function (Wladimir J. van der Laan) 60dc8e4 Allow -onlynet=onion to be used (Wladimir J. van der Laan)
| * Add detailed network info to getnetworkinfo RPCWladimir J. van der Laan2014-08-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by #2575.
| * Allow -onlynet=onion to be usedWladimir J. van der Laan2014-07-301-1/+1
| | | | | | | | | | Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better.
* | Merge pull request #4615Wladimir J. van der Laan2014-08-061-2/+1
|\ \ | | | | | | | | | 283a3b8 small ordering cleanup of init help message (Philip Kaufmann)
| * | small ordering cleanup of init help messagePhilip Kaufmann2014-08-011-2/+1
| |/
* / Typo, and a few "Bitcoin" -> "Bitcoin Core"pryds2014-08-041-3/+3
|/ | | | Github-Pull: #4619
* Merge pull request #4593Wladimir J. van der Laan2014-07-301-3/+4
|\ | | | | | | d70bc52 Rework block processing benchmark code (Pieter Wuille)
| * Rework block processing benchmark codePieter Wuille2014-07-271-3/+4
| | | | | | | | | | | | * Replace -benchmark (and the related fBenchmark) with a regular debug option, -debug=bench. * Increase coverage and granularity of individual block processing steps. * Add cummulative times.
* | Avoid querying DNS seeds, if we have open connections.Jeff Garzik2014-07-291-1/+2
| | | | | | | | The goal is to increase independence and privacy.
* | Merge pull request #4531Wladimir J. van der Laan2014-07-281-0/+1
|\ \ | |/ |/| | | ebdcc36 Add helptexts for -whitelist and rpc prioritisetransaction and switch to bitcoin instead of satoshis (Cozz Lovan)
| * Add helptexts for -whitelist and rpc prioritisetransaction and switch to ↵Cozz Lovan2014-07-151-0/+1
| | | | | | | | bitcoin instead of satoshis
* | Revert "Relay double-spends, subject to anti-DOS"Wladimir J. van der Laan2014-07-211-1/+0
| | | | | | | | This reverts commit d640a3ceab4f4372c2a0f738c1286cfde4b41b50.
* | Revert "Remove signal DoubleSpendDetected, use function"Wladimir J. van der Laan2014-07-211-1/+1
| | | | | | | | This reverts commit 0da6b3fd187da3aa810aaa584d8bd197ad4fa2b9.
* | Introduce option to disable relay/mining of bare multisig scripts in TX outputsJeff Garzik2014-07-181-1/+5
| | | | | | | | | | | | | | | | First and foremost, this defaults to OFF. This option lets a node consider such transactions non-standard, meaning they will not be relayed or mined by default, but other miners are free to mine these as usual.
* | Make sure CAutoFile for fees estimate goes out of scopePieter Wuille2014-07-161-6/+8
|/
* Add option to disable 077 umask (create new files with system default umask)Rune K. Svendsen2014-07-141-1/+13
| | | | | | | | | The option is only effective for either wallet-less builds or if -disablewallet is specified as well. Rebased-By: Wladimir J. van der Laan <[email protected]> Rebased-From: 34d5fc0 4e1a196 bd4307b d53a33b 7e09b36 Github-Pull: #4286
* qt: Ignore showNormalIfMinimized in initialization or shutdownWladimir J. van der Laan2014-07-141-2/+2
| | | | | | | Also get rid of ui_interface flag NOSHOWGUI. It's up to the GUI to decide this. Fixes #4360.
* Merge pull request #4378Wladimir J. van der Laan2014-07-141-6/+26
|\ | | | | | | dc942e6 Introduce whitelisted peers. (Pieter Wuille)
| * Introduce whitelisted peers.Pieter Wuille2014-07-091-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).
* | In -? output: -keypool, -gen, -genproclimit depend on ENABLE_WALLETZak Wilcox2014-07-121-1/+3
|/
* init.cpp: log fee estimates filename on errorPhilip Kaufmann2014-07-091-10/+16
| | | | | | - small changes to Shutdown(), buffer __func__, which is now used in all LogPrintf() calls and format for better readability - order using namespace alpabetically
* Fee fixesCozz Lovan2014-07-081-1/+2
|
* Merge pull request #4327Wladimir J. van der Laan2014-07-071-13/+9
|\ | | | | | | | | a339a37 error out, when we detect -socks argument (Philip Kaufmann) 0127a9b remove SOCKS4 support from core and GUI (Philip Kaufmann)
| * error out, when we detect -socks argumentPhilip Kaufmann2014-07-071-0/+3
| |
| * remove SOCKS4 support from core and GUIPhilip Kaufmann2014-07-071-13/+6
| | | | | | | | - now we support SOCKS5 only
* | Move ui_interface to bitcoin_server.aWladimir J. van der Laan2014-07-071-0/+1
|/ | | | | There is no need for it in the utility libraries or tools. Put it in init.cpp, and in the tests separately (as they can't link init).
* Merge pull request #3764Wladimir J. van der Laan2014-07-041-0/+2
|\ | | | | | | 2e36866 Show nodeid instead of addresses (for anonymity) unless otherwise requested. (R E Broadley)
| * Show nodeid instead of addresses (for anonymity) unless otherwise requested.R E Broadley2014-07-041-0/+2
| |
* | Merge pull request #4450Wladimir J. van der Laan2014-07-041-1/+1
|\ \ | | | | | | | | | | | | 0da6b3f Remove signal DoubleSpendDetected, use function (Tom Harding) 88dd359 Check signatures before respend relay (Tom Harding)
| * | Remove signal DoubleSpendDetected, use functionTom Harding2014-07-021-1/+1
| |/ | | | | | | Also removes the need for forward reference to RelayableRespend.
* | Move fee policy out of coreGavin Andresen2014-07-031-15/+15
| |
* | Use fee/priority estimates in wallet CreateTransactionGavin Andresen2014-07-031-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wallet now uses the mempool fee estimator with a new command-line option: -txconfirmtarget (default: 1) instead of using hard-coded fees or priorities. A new bitcoind that hasn't seen enough transactions to estimate will fall back to the old hard-coded minimum priority or transaction fee. -paytxfee option overrides -txconfirmtarget. Relaying and mining code isn't changed. For Qt, the coin control dialog now uses priority estimates to label transaction priority (instead of hard-coded constants); unspent outputs were consistently labeled with a much higher priority than is justified by the free transactions actually being accepted into blocks. I did not implement any GUI for setting -txconfirmtarget; I would suggest getting rid of the "Pay transaction fee" GUI and replace it with either "target number of confirmations" or maybe a "faster confirmation <--> lower fee" slider or select box.
* | Clarify error message when invalid -rpcallowipWladimir J. van der Laan2014-07-031-1/+1
|/ | | | Also add to HelpMessage() what specifications are valid.
* Merge pull request #4325Wladimir J. van der Laan2014-07-011-3/+3
|\ | | | | | | 4aaa017 rework help messages for fee-related options (Philip Kaufmann)
| * rework help messages for fee-related optionsPhilip Kaufmann2014-06-111-3/+3
| | | | | | | | - mention the units and show the default for -paytxfee
* | Add -respendnotify option and new RPC dataTom Harding2014-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | -respendnotify=<cmd> Execute command when a network tx respends wallet tx input (%s=respend TxID, %t=wallet TxID) Add respendsobserved array to gettransaction, listtransactions, and listsinceblock RPCs. This omits the malleated clones that are included in the walletconflicts array. Add RPC help for respendsobserved and walletconflicts (help was missing for the latter).
* | Relay double-spends, subject to anti-DOSTom Harding2014-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows network wallets and other clients to see transactions that respend a prevout already spent in an unconfirmed transaction in this node's mempool. Knowledge of an attempted double-spend is of interest to recipients of the first spend. In some cases, it will allow these recipients to withhold goods or services upon being alerted of a double-spend that deprives them of payment. As before, respends are not added to the mempool. Anti-Denial-of-Service-Attack provisions: - Use a bloom filter to relay only one respend per mempool prevout - Rate-limit respend relays to a default of 100 thousand bytes/minute - Define tx2.IsEquivalentTo(tx1): equality when scriptSigs are not considered - Do not relay these equivalent transactions Remove an unused variable declaration in txmempool.cpp.
* | Add an option to allow users to disable relaying/mining data carrier ↵Luke Dashjr2014-06-261-0/+2
| | | | | | | | transactions
* | Merge pull request #4130Wladimir J. van der Laan2014-06-241-8/+7
|\ \ | | | | | | | | | 1c750db remove -tor compatibility code (only allow -onion) (Philip Kaufmann)
| * | remove -tor compatibility code (only allow -onion)Philip Kaufmann2014-06-241-8/+7
| | | | | | | | | | | | - exit, if -tor option is found and give error to user
* | | Merge pull request #3674Wladimir J. van der Laan2014-06-241-3/+31
|\ \ \ | |/ / |/| | | | | 77cbd46 Let -zapwallettxes recover transaction meta data (Cozz Lovan)
| * | Let -zapwallettxes recover transaction meta dataCozz Lovan2014-06-161-3/+31
| | |