aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Bypass reloading blocks from diskPieter Wuille2014-08-261-17/+26
| | | | | |
* | | | | | Revert "Add a getutxos command to the p2p protocol. It allows querying of ↵Wladimir J. van der Laan2014-08-271-86/+0
| |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | the UTXO set" This reverts commit da2ec100f3681176f60dec6dc675fc64147ade3a.
* | | | | Merge pull request #4748Pieter Wuille2014-08-261-0/+62
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ad49c25 Split up util.cpp/h (Wladimir J. van der Laan) f841aa2 Move `COIN` and `CENT` to core.h (Wladimir J. van der Laan) 6e5fd00 Move `*Version()` functions to version.h/cpp (Wladimir J. van der Laan) b4aa769 Move `S_I*` constants and `MSG_NOSIGNAL` to compat.h (Wladimir J. van der Laan) af8297c Move functions in wallet.h to implementation file (Wladimir J. van der Laan) 651480c move functions in main and net to implementation files (Wladimir J. van der Laan) 610a8c0 Move SetThreadPriority implementation to util.cpp instead of the header (Wladimir J. van der Laan) f780e65 Remove unused function `ByteReverse` from util.h (Wladimir J. van der Laan) 121d6ad Remove unused `alignup` function from util.h (Wladimir J. van der Laan) d1e26d4 Move CMedianFilter to timedata.cpp (Wladimir J. van der Laan)
| * | | | | Split up util.cpp/hWladimir J. van der Laan2014-08-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | move functions in main and net to implementation filesWladimir J. van der Laan2014-08-261-0/+61
| |/ / / /
* / / / / Use const CCoinsView's at some places.Daniel Kraft2014-08-261-3/+3
|/ / / / | | | | | | | | | | | | | | | | At some places where it is possible (e. g., CheckInputs), use a const version of CCoinsView instead of a non-const one.
* | | | Merge pull request #4716Wladimir J. van der Laan2014-08-251-5/+1
|\ \ \ \ | | | | | | | | | | | | | | | 0d27dad Clean-up SyncWithWallets/SyncTransaction (Cozz Lovan)
| * | | | Clean-up SyncWithWallets/SyncTransactionCozz Lovan2014-08-171-5/+1
| | |/ / | |/| |
* | | | Merge pull request #4351Wladimir J. van der Laan2014-08-251-0/+86
|\ \ \ \ | | | | | | | | | | | | | | | da2ec10 Add a getutxos command to the p2p protocol. It allows querying of the UTXO set given a set of outpoints. (Mike Hearn)
| * | | | Add a getutxos command to the p2p protocol. It allows querying of the UTXO setMike Hearn2014-08-111-0/+86
| | | | | | | | | | | | | | | | | | | | given a set of outpoints.
* | | | | Merge pull request #4618Pieter Wuille2014-08-241-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | eb0b56b Simplify serialize.h's exception handling (Pieter Wuille)
| * | | | Simplify serialize.h's exception handlingPieter Wuille2014-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the 'state' and 'exceptmask' from serialize.h's stream implementations, as well as related methods. As exceptmask always included 'failbit', and setstate was always called with bits = failbit, all it did was immediately raise an exception. Get rid of those variables, and replace the setstate with direct exception throwing (which also removes some dead code). As a result, good() is never reached after a failure (there are only 2 calls, one of which is in tests), and can just be replaced by !eof(). fail(), clear(n) and exceptions() are just never called. Delete them.
* | | | | Remove all other print() methodsWladimir J. van der Laan2014-08-201-1/+0
| | | | | | | | | | | | | | | | | | | | All unused.
* | | | | Merge pull request #4655Wladimir J. van der Laan2014-08-181-6/+3
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | 216e9a4 Add a way to limit deserialized string lengths (Pieter Wuille)
| * | | | Add a way to limit deserialized string lengthsPieter Wuille2014-08-091-6/+3
| | |/ / | |/| | | | | | | | | | and use it for most strings being serialized.
* | | | Reapply: Reject transactions with excessive numbers of sigopsPeter Todd2014-08-131-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | Reverting was based on a misunderstanding, it appears. Github-Pull: #4150
* | | | Revert "Reject transactions with excessive numbers of sigops"Wladimir J. van der Laan2014-08-121-12/+3
| | | | | | | | | | | | | | | | This reverts commit 4fad8e6d831729efa1965fa2034e7e51d3d0a1be.
* | | | Merge pull request #4150Wladimir J. van der Laan2014-08-121-3/+12
|\ \ \ \ | | | | | | | | | | | | | | | 4fad8e6 Reject transactions with excessive numbers of sigops (Peter Todd)
| * | | | Reject transactions with excessive numbers of sigopsPeter Todd2014-07-131-3/+12
| | | | |
* | | | | Reduce maximum coinscache size during verificationWladimir J. van der Laan2014-08-111-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to growing coinsviewcaches, the memory usage with checklevel=3 (and standard settings for dbcache) could be up to 500MiB on a 64-bit system. This is about twice the peak during reindexing, unnecessarily extending bitcoind's memory envelope. This commit reduces the maximum total size of the caches used during verification to just nCoinCacheSize, which should be the limit.
* | | | Log "version" message IP addresses in client connect summaryJeff Garzik2014-08-041-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only other method of logging remote addresses is via -logips=1 -debug=net which increases the logged activity by 100x or more. Github-Pull: #4608 Amended-By: Wladimir J. van der Laan <[email protected]>
* | | | Implement "getchaintips" RPC command to monitor blockchain forks.Daniel Kraft2014-08-031-3/+3
| |/ / |/| | | | | | | | | | | | | | | | | | | | Port over https://github.com/chronokings/huntercoin/pull/19 from Huntercoin: This implements a new RPC command "getchaintips" that can be used to find all currently active chain heads. This is similar to the -printblocktree startup option, but it can be used without restarting just via the RPC interface on a running daemon.
* | | Merge pull request #4497Pieter Wuille2014-07-311-1/+12
|\ \ \ | | | | | | | | | | | | 714a3e6 Only keep setBlockIndexValid entries that are possible improvements (Pieter Wuille)
| * | | Only keep setBlockIndexValid entries that are possible improvementsPieter Wuille2014-07-111-1/+12
| |/ /
* | | Rework block processing benchmark codePieter Wuille2014-07-271-13/+37
| | | | | | | | | | | | | | | | | | * 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.
* | | Merge pull request #4496Wladimir J. van der Laan2014-07-241-1/+2
|\ \ \ | | | | | | | | | | | | 5734d4d Only remove actualy failed blocks from setBlockIndexValid (Pieter Wuille)
| * | | Only remove actualy failed blocks from setBlockIndexValidPieter Wuille2014-07-091-1/+2
| |/ /
* | | Revert "Relay double-spends, subject to anti-DOS"Wladimir J. van der Laan2014-07-211-86/+14
| | | | | | | | | | | | This reverts commit d640a3ceab4f4372c2a0f738c1286cfde4b41b50.
* | | Revert "Formatting, spelling, comment fixes."Wladimir J. van der Laan2014-07-211-2/+4
| | | | | | | | | | | | This reverts commit 7a19efe04069d9a1e251cdc94b25184f76d9d901.
* | | Revert "Check signatures before respend relay"Wladimir J. van der Laan2014-07-211-22/+15
| | | | | | | | | | | | This reverts commit 88dd3598d22197a22565e524cecdc08107cf76ac.
* | | Revert "Remove signal DoubleSpendDetected, use function"Wladimir J. van der Laan2014-07-211-47/+56
| | | | | | | | | | | | This reverts commit 0da6b3fd187da3aa810aaa584d8bd197ad4fa2b9.
* | | Introduce option to disable relay/mining of bare multisig scripts in TX outputsJeff Garzik2014-07-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #4533Wladimir J. van der Laan2014-07-171-1/+1
|\ \ \ | |_|/ |/| | | | | 43005cf Fix semantic typo in state.CorruptionPossible check (kazcw)
| * | Fix semantic typo in state.CorruptionPossible checkkazcw2014-07-141-1/+1
| | | | | | | | | | | | | | | | | | state.Invalid() is always false, check should be IsInvalid() Broken since 942b33a
* | | Merge pull request #4505Wladimir J. van der Laan2014-07-151-1/+1
|\ \ \ | |/ / |/| | | | | d4d3fbd Do not flush the cache after every block outside of IBD (Pieter Wuille)
| * | Do not flush the cache after every block outside of IBDPieter Wuille2014-07-111-1/+1
| |/
* | Merge pull request #4400Wladimir J. van der Laan2014-07-141-1/+1
|\ \ | | | | | | | | | | | | | | | 4eedf4f make RandAddSeed() use OPENSSL_cleanse() (Philip Kaufmann) 6354935 move rand functions from util to new random.h/.cpp (Philip Kaufmann) 001a53d add GetRandBytes() as wrapper for RAND_bytes() (Philip Kaufmann)
| * | add GetRandBytes() as wrapper for RAND_bytes()Philip Kaufmann2014-07-091-1/+1
| |/ | | | | | | | | | | - add a small wrapper in util around RAND_bytes() and replace with GetRandBytes() in the code to log errors from calling RAND_bytes() - remove OpenSSL header rand.h where no longer needed
* | Merge pull request #4378Wladimir J. van der Laan2014-07-141-5/+14
|\ \ | | | | | | | | | dc942e6 Introduce whitelisted peers. (Pieter Wuille)
| * | Introduce whitelisted peers.Pieter Wuille2014-07-091-5/+14
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* / getblocktemplate: longpolling supportLuke Dashjr2014-07-111-0/+5
|/
* Merge pull request #4471Wladimir J. van der Laan2014-07-071-0/+10
|\ | | | | | | 40f5cb8 Send rejects and apply DoS scoring for errors in direct block validation. (Pieter Wuille)
| * Send rejects and apply DoS scoring for errors in direct block validation.Pieter Wuille2014-07-061-0/+10
| | | | | | | | | | | | | | | | | | 75f51f2a introduced asynchronous processing for blocks, where reject messages and DoS scoring could be applied outside of ProcessBlock, because block validation may happen later. However, some types of errors are still detected immediately (in particular, CheckBlock violations), which need acting after ProcessBlock returns.
* | Merge pull request #4446Wladimir J. van der Laan2014-07-071-4/+4
|\ \ | | | | | | | | | 209377a Use GetBlockTime() more (jtimon)
| * | Use GetBlockTime() morejtimon2014-07-071-4/+4
| | |
* | | Merge pull request #4470Wladimir J. van der Laan2014-07-071-8/+6
|\ \ \ | |/ / |/| | | | | | | | f4b00be Add CChain::GetLocator() unit test (Pieter Wuille) 3c85d2e Fix CChain::GetLocator (Pieter Wuille)
| * | Fix CChain::GetLocatorPieter Wuille2014-07-061-8/+6
| |/
* | Merge pull request #4472Wladimir J. van der Laan2014-07-071-3/+3
|\ \ | |/ |/| | | 9f4da19 Use pong receive time rather than processing time (Pieter Wuille)
| * Use pong receive time rather than processing timePieter Wuille2014-07-061-3/+3
| |
* | Merge pull request #3764Wladimir J. van der Laan2014-07-041-17/+17
|\ \ | | | | | | | | | 2e36866 Show nodeid instead of addresses (for anonymity) unless otherwise requested. (R E Broadley)