aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | 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
* | | | Print parameter interactions to console, tooMatt Corallo2014-10-291-3/+4
| | | |
* | | | MOVEONLY: Move CFeeRate and Amount constants to amount.ojtimon2014-10-271-0/+1
|/ / /
* | | Merge pull request #5108Wladimir J. van der Laan2014-10-221-2/+2
|\ \ \ | | | | | | | | | | | | | | | | a873823 CAutoFile: Explicit Get() and remove unused methods (Wladimir J. van der Laan) fef24ca Add IsNull() to class CAutoFile and remove operator ! (Ruben Dario Ponticeli)
| * | | CAutoFile: Explicit Get() and remove unused methodsWladimir J. van der Laan2014-10-221-2/+2
| | | | | | | | | | | | | | | | Also add documentation to some methods.
* | | | qt: small English language updates from translatorsWladimir J. van der Laan2014-10-211-1/+1
| | | | | | | | | | | | | | | | More friendly language, use placeholders where possible
* | | | Merge pull request #5076Wladimir J. van der Laan2014-10-211-43/+43
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | c0195b1 Bugfix: Remove default from -zapwallettxes description (inaccurate) (Luke Dashjr) 0a08aa8 Parameterise command line option defaults, so translations are independent of them (Luke Dashjr)
| * | | | Bugfix: Remove default from -zapwallettxes description (inaccurate)Luke Dashjr2014-10-141-1/+1
| | | | |
| * | | | Parameterise command line option defaults, so translations are independent ↵Luke Dashjr2014-10-111-43/+43
| | | | | | | | | | | | | | | | | | | | of them
* | | | | Rename CWalletInterface to CValidationInterfacePieter Wuille2014-10-201-2/+2
| |/ / / |/| | | | | | | | | | | It's useful for much more than wallets.
* | | | Fix rebuild-chainstate feature and improve its performancePieter Wuille2014-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous refactorings broke the ability to rebuild the chainstate by deleting the chainstate directory, resulting in an incorrect "Incorrect or no genesis block found" error message. Fix that. Also, improve the performance of ActivateBestBlockStep by using the skiplist to only discover a few potential blocks to connect at a time, instead of all blocks forever - as we likely bail out after connecting a single one anyway.
* | | | Merge pull request #4942Wladimir J. van der Laan2014-10-141-17/+10
|\ \ \ \ | |/ / / |/| | | | | | | 9406471 Write fee estimate and peers files only when initialized (Wladimir J. van der Laan)
| * | | Write fee estimate and peers files only when initializedWladimir J. van der Laan2014-09-181-17/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #4669. Move the loading of addresses to StartNode() to make it more self-contained.
* | | | Merge pull request #4834Pieter Wuille2014-10-081-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7c70438 Get rid of the dummy CCoinsViewCache constructor arg (Pieter Wuille) ed27e53 Add coins_tests with a large randomized CCoinViewCache test. (Pieter Wuille) 058b08c Do not keep fully spent but unwritten CCoins entries cached. (Pieter Wuille) c9d1a81 Get rid of CCoinsView's SetCoins and SetBestBlock. (Pieter Wuille) f28aec0 Use ModifyCoins instead of mutable GetCoins. (Pieter Wuille)
| * | | | Get rid of the dummy CCoinsViewCache constructor argPieter Wuille2014-09-241-1/+1
| | | | |
* | | | | Merge pull request #4979Wladimir J. van der Laan2014-10-081-7/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | de10efd add -timeout default as constant and use them (Philip Kaufmann)
| * | | | | add -timeout default as constant and use themPhilip Kaufmann2014-10-061-7/+4
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | - update help message text - simplify code in init to check for -timeout
* / | | | minor txindex documentation improvementCozz Lovan2014-10-061-2/+1
|/ / / /
* | | | Merge pull request #4980Pieter Wuille2014-10-021-4/+5
|\ \ \ \ | | | | | | | | | | | | | | | 20a11ff minor variable init changes in init.cpp (Philip Kaufmann)
| * | | | minor variable init changes in init.cppPhilip Kaufmann2014-09-251-4/+5
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | - explicit init of pcoinsdbview and pwalletMain (even if not needed, as globals are init to NULL, it seems cleaner) - remove check if (pwalletMain) in Shutdown() as delete is valid even if pwalletMain is NULL
* | | | Merge pull request #4234Wladimir J. van der Laan2014-10-011-3/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | c122f55 qt: Register CAmount metatype (Wladimir J. van der Laan) a372168 Use a typedef for monetary values (Mark Friedenbach)
| * | | | Use a typedef for monetary valuesMark Friedenbach2014-09-261-3/+3
| | | | |
* | | | | Merge pull request #4796Pieter Wuille2014-09-291-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | e8b5f0d Move CBlockIndex, CChain and related code out of main (jtimon) 6db83db Decouple CChain from mapBlockIndex (jtimon)
| * | | | Decouple CChain from mapBlockIndexjtimon2014-09-081-1/+1
| | | | |