aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | privacy: Stream isolation for TorWladimir J. van der Laan2015-04-171-6/+7
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to Tor's extensions to the SOCKS protocol (https://gitweb.torproject.org/torspec.git/tree/socks-extensions.txt) it is possible to perform stream isolation by providing authentication to the proxy. Each set of credentials will create a new circuit, which makes it harder to correlate connections. This patch adds an option, `-proxyrandomize` (on by default) that randomizes credentials for every outgoing connection, thus creating a new circuit. 2015-03-16 15:29:59 SOCKS5 Sending proxy authentication 3842137544:3256031132
* | | Make 'Default: %u' spacing consistent in help messageWladimir J. van der Laan2015-04-201-2/+2
| | | | | | | | | | | | Comment by pryds on Transifex.
* | | Fix typo in init.cpp interpration/interpretationMichael Ford2015-04-201-1/+1
|/ /
* | Merge pull request #5997Wladimir J. van der Laan2015-04-151-3/+4
|\ \ | | | | | | | | | 4e38217 Chainparams: Refactor: Remove redundant HashGenesisBlock() getter (Jorge Timón)
| * | Chainparams: Refactor: Remove redundant HashGenesisBlock() getterJorge Timón2015-04-121-3/+4
| | |
* | | Push down RPC reqWallet flagJonas Schnelli2015-04-121-5/+0
|/ /
* | Merge pull request #5951Wladimir J. van der Laan2015-04-081-0/+2
|\ \ | | | | | | | | | | | | 77650cc add -walletbroadcast=0 rpc test (Jonas Schnelli) 6f25262 wallet: make it possible to disable transaction broadcast (Wladimir J. van der Laan)
| * | wallet: make it possible to disable transaction broadcastWladimir J. van der Laan2015-04-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an advanced feature which will disable any kind of automatic transaction broadcasting in the wallet. This gives the user full control of how the transaction is sent. For example they can broadcast new transactions through some other mechanism themselves, after getting the transaction hex through `gettransaction`. This just adds the option `-walletbroadcast=<0,1>`. Right now these transactions will get the status Status: conflicted, has not been successfully broadcast yet They shouldn't be shown as conflicted at all (`walletconflicts` is empty). This status will go away when the transaction is received through the network.
* | | Add a consistency check for the block chain data structuresPieter Wuille2015-03-271-2/+3
|/ / | | | | | | | | | | This adds a -checkblockindex (defaulting to true for regtest), which occasionally does a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive, and mapBlocksUnlinked.
* | Fix --disable-wallet build after merge of #5681Wladimir J. van der Laan2015-03-241-0/+1
| |
* | refactor: move bdb (bitdb) interaction from init.cpp to wallet.cppJonas Schnelli2015-03-201-44/+13
| | | | | | | | this will remove db.h from init.cpp
* | [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-3/+3
| | | | | | | | could once be renamed from /src/wallet to /src/legacywallet.
* | Fix - bitcoin-qt usage messageLuca Venturini2015-03-101-0/+13
| | | | | | | | | | | | | | . Closes the bug from commit e179eb3d9bfec7e67908242c71c87b716a41c97c ("bitcoin-qt -help" did not show any message) . Move all the options in init.cpp (there were already some options related to bitcoin-qt)
* | Help messages correctly formatted (79 chars)Luca Venturini2015-03-101-119/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format works even if the translation of the strings modifies the lenght of the message. Sqashed 6 commits in a single one. Help messages correctly formatted for SVGA text mode (132 chars) Help messages are formatted programmatically with FormatParagraph in order not to break existing strings in Transifex. The new format should work even if the translation of the strings modifies the lenght of the message. Fix - syntax error Correct formatting for 79 chars Correctly based on C++ functions Removed spare spaces from option strings Fix - syntax error
* | Merge pull request #5711Wladimir J. van der Laan2015-02-041-0/+22
|\ \ | | | | | | | | | | | | 5ebe095 Trim RPC command table (Wladimir J. van der Laan) 4401b2d Removed main.h dependency from rpcserver.cpp (Eric Lombrozo)
| * | Removed main.h dependency from rpcserver.cppEric Lombrozo2015-01-281-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Rebased by @laanwj: - update for RPC methods added since 84d13ee: setmocktime, invalidateblock, reconsiderblock. Only the first, setmocktime, required a change, the other two are thread safe.
* | | Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-1/+1
|/ /
* | Merge pull request #5243Wladimir J. van der Laan2015-01-261-0/+5
|\ \ | | | | | | | | | ff09e31 sleep-wait on genesis block during init with -reindex (Matt Corallo)
| * | sleep-wait on genesis block during init with -reindexMatt Corallo2014-12-201-0/+5
| | |
* | | Merge pull request #4805Wladimir J. van der Laan2015-01-261-1/+3
|\ \ \ | | | | | | | | | | | | 44bc988 [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..) (Cozz Lovan)
| * | | [Wallet] Do not flush the wallet in AddToWalletIfInvolvingMe(..)Cozz Lovan2014-10-031-1/+3
| | | |
* | | | Restore RPC HTTP keepalives to default.Gregory Maxwell2015-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids a regression for issues like #334 where high speed repeated connections eventually run the HTTP client out of sockets because all of theirs end up in time_wait. Maybe the trade-off here is suboptimal, but if both choices will fail then we prefer fewer changes until the root cause is solved.
* | | | Add a -rpckeepalive and disable RPC use of HTTP persistent connections.Gregory Maxwell2015-01-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that some miners have been staying with old versions of Bitcoin Core because their software behaves poorly with persistent connections and the Bitcoin Core thread and connection limits. What happens is that underlying HTTP libraries leave connections open invisibly to their users and then the user runs into the default four thread limit. This looks like Bitcoin Core is unresponsive to RPC. There are many things that should be improved in Bitcoin Core's behavior here, e.g. supporting more concurrent connections, not tying up threads for idle connections, disconnecting kept-alive connections when limits are reached, etc. All are fairly big, risky changes. Disabling keep-alive is a simple workaround. It's often not easy to turn off the keep-alive support in the client where it may be buried in some platform library. If you are one of the few who really needs persistent connections you probably know that you want them and can find a switch; while if you don't and the misbehavior is hitting you it is hard to discover the source of your problems is keepalive related. Given that it is best to default to off until they're handled better.
* | | | Catch UTXO set read errors and shutdownPieter Wuille2015-01-081-1/+26
| | | |
* | | | Merge pull request #5535Wladimir J. van der Laan2015-01-071-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | 1c52aad Require sufficent priority for relay of free transactions (Pieter Wuille)
| * | | | Require sufficent priority for relay of free transactionsPieter Wuille2014-12-301-0/+1
| | | | |
* | | | | namespace: remove boost namespace pollutionCory Fields2015-01-021-13/+12
|/ / / /
* | | | Merge pull request #5272Wladimir J. van der Laan2014-12-271-15/+20
|\ \ \ \ | | | | | | | | | | | | | | | 13f9031 init: minor parameter interaction updates (Philip Kaufmann)
| * | | | init: minor parameter interaction updatesPhilip Kaufmann2014-11-131-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use __func__ instead of hard-coded function name for logging - update -discover help message to reflect newly added parameter interaction - use DEFAULT_LISTEN in a parameter interaction check instead a hard coded value
* | | | | en: Avoid ambiguous language regarding when transactions confirmLuke Dashjr2014-12-231-1/+1
| | | | |
* | | | | Merge pull request #5485Wladimir J. van der Laan2014-12-231-0/+15
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | aa279d6 Enforce minRelayTxFee on wallet created tx and add a maxtxfee option. (Gregory Maxwell)
| * | | | | Enforce minRelayTxFee on wallet created tx and add a maxtxfee option.Gregory Maxwell2014-12-191-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the minRelayTxFee was only enforced on user specified values. It was possible for smartfee to produce a fee below minRelayTxFee which would just result in the transaction getting stuck because it can't be relayed. This also introduces a maxtxfee option which sets an absolute maximum for any fee created by the wallet, with an intention of increasing user confidence that the automatic fees won't burn them. This was frequently a concern even before smartfees. If the configured fee policy won't even allow the wallet to meet the relay fee the transaction creation may be aborted.
* | | | | | remove max orphan blocks config parameter since it is no longer functionalJameson Lopp2014-12-211-1/+0
| |_|_|/ / |/| | | |
* | | | | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | | | | make all catch() arguments constPhilip Kaufmann2014-12-171-3/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | - I saw this on http://en.cppreference.com/w/cpp/language/try_catch and thought it would be a good idea - also unify used format to better be able to search for exception uses in our codebase
* | | | Make comments in main an init doxygen compatibleMichael Ford2014-12-021-5/+5
| | | | | | | | | | | | | | | | | | | | Fix typos where appropriate Update license/copyright
* | | | Remove -printblock, -printblocktree, and -printblockindexPieter Wuille2014-11-271-30/+0
| | | |
* | | | [REST] set REST API behind "-rest" optionJonas Schnelli2014-11-261-0/+1
| | | |
* | | | Merge pull request #5241Wladimir J. van der Laan2014-11-251-8/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | a206950 Introduce separate flushing modes (Pieter Wuille) 51ce901 Improve chainstate/blockindex disk writing policy (Pieter Wuille)
| * | | | Improve chainstate/blockindex disk writing policyPieter Wuille2014-11-241-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are 3 pieces of data that are maintained on disk. The actual block and undo data, the block index (which can refer to positions on disk), and the chainstate (which refers to the best block hash). Earlier, there was no guarantee that blocks were written to disk before block index entries referring to them were written. This commit introduces dirty flags for block index data, and delays writing entries until the actual block data is flushed. With this stricter ordering in writes, it is now safe to not always flush after every block, so there is no need for the IsInitialBlockDownload() check there - instead we just write whenever enough time has passed or the cache size grows too large. Also updating the wallet's best known block is delayed until this is done, otherwise the wallet may end up referring to an unknown block. In addition, only do a write inside the block processing loop if necessary (because of cache size exceeded). Otherwise, move the writing to a point after processing is done, after relaying.
* | | | | Make -proxy set all network types, avoiding a connect leak.Gregory Maxwell2014-11-231-4/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously -proxy was not setting the proxy for IsLimited networks, so if you set your configuration to be onlynet=tor you wouldn't get an IPv4 proxy set. The payment protocol gets its proxy configuration from the IPv4 proxy, and so it would experience a connection leak. This addresses issue #5355 and also clears up a cosmetic bug where getinfo proxy output shows nothing when onlynet=tor is set.
* | | | Change MIT/X11 to MIT in license displayed in the programPhilip Kaufmann2014-11-211-1/+1
| | | |
* | | | [Qt] Add Smartfee to GUICozz Lovan2014-11-191-0/+2
|/ / /
* | | Merge pull request #5161Wladimir J. van der Laan2014-11-121-0/+3
|\ \ \ | | | | | | | | | | | | 845c86d Do not use third party services for IP detection. (Gregory Maxwell)
| * | | Do not use third party services for IP detection.Gregory Maxwell2014-11-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a simplified re-do of closed pull #3088. This patch eliminates the privacy and reliability problematic use of centralized web services for discovering the node's addresses for advertisement. The Bitcoin protocol already allows your peers to tell you what IP they think you have, but this data isn't trustworthy since they could lie. So the challenge is using it without creating a DOS vector. To accomplish this we adopt an approach similar to the one used by P2Pool: If we're announcing and don't have a better address discovered (e.g. via UPNP) or configured we just announce to each peer the address that peer told us. Since peers could already replace, forge, or drop our address messages this cannot create a new vulnerability... but if even one of our peers is giving us a good address we'll eventually make a useful advertisement. We also may randomly use the peer-provided address for the daily rebroadcast even if we otherwise have a seemingly routable address, just in case we've been misconfigured (e.g. by UPNP). To avoid privacy problems, we only do these things if discovery is enabled.
* | | | Change -genproclimit default to 1Wladimir J. van der Laan2014-11-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is less surprising. Avoids the overload-the-CPU default of using N threads for script verification as well as N threads for generation where N is number of cores.
* | | | Always log number of threads for script verificationWladimir J. van der Laan2014-11-061-1/+1
|/ / / | | | | | | | | | Helps for troubleshooting.
* | | Add "warmup mode" for RPC server.Daniel Kraft2014-11-041-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Start the RPC server before doing all the (expensive) startup initialisations like loading the block index. Until the node is ready, return all calls immediately with a new error signalling "in warmup" with an appropriate status message (similar to the init message). This is useful for RPC clients to know that the server is there (e. g., they don't have to start it) but not yet available. It is used in Namecoin and Huntercoin already for some time, and there exists a UI hooked onto the RPC interface that actively uses this to its advantage.
* | | Merge pull request #5077Wladimir J. van der Laan2014-10-311-0/+3
|\ \ \ | | | | | | | | | | | | 2aa6329 Enable customising node policy for datacarrier data size with a -datacarriersize option (Luke Dashjr)
| * | | Enable customising node policy for datacarrier data size with a ↵Luke Dashjr2014-10-271-0/+3
| | | | | | | | | | | | | | | | -datacarriersize option