aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Avoid copying undo dataPieter Wuille2014-09-171-8/+11
|
* Merge pull request #4555Wladimir J. van der Laan2014-09-171-9/+4
|\ | | | | | | | | | | | | 6dcfda2 Don't pass nHashType to EvalScript nor CheckSig (jtimon) 2b23a87 Don't pass nHashType to VerifyScript (jtimon) ce3649fb Remove CScriptCheck::nHashType (was always 0) (jtimon) 358562b Remove unused function main:VerifySignature (jtimon)
| * Don't pass nHashType to EvalScript nor CheckSigjtimon2014-09-121-1/+1
| |
| * Don't pass nHashType to VerifyScriptjtimon2014-09-121-1/+1
| |
| * Remove CScriptCheck::nHashType (was always 0)jtimon2014-09-121-3/+3
| |
| * Remove unused function main:VerifySignaturejtimon2014-09-121-5/+0
| |
* | Merge pull request #4903Pieter Wuille2014-09-161-12/+16
|\ \ | | | | | | | | | efad808 Avoid reject message feedback loops (Pieter Wuille)
| * | Avoid reject message feedback loopsPieter Wuille2014-09-121-12/+16
| |/
* | Merge pull request #4460Wladimir J. van der Laan2014-09-161-3/+3
|\ \ | | | | | | | | | 604ee2a Remove tx from AlreadyAskedFor list once we receive it, not when we process it. (R E Broadley)
| * | Remove tx from AlreadyAskedFor list once we receive it, not when we process it.R E Broadley2014-07-161-3/+3
| | |
* | | Merge pull request #4875Pieter Wuille2014-09-161-1/+6
|\ \ \ | | | | | | | | | | | | | | | | f7e3637 Eliminate extra assignment (Suhas Daftuar) ec7eb0f When reindexing check for file before trying to open (refactored) (Suhas Daftuar)
| * | | Eliminate extra assignmentSuhas Daftuar2014-09-151-2/+1
| | | |
| * | | When reindexing check for file before trying to open (refactored)Suhas Daftuar2014-09-101-1/+7
| | | |
* | | | Fixing compiler warning C4101ENikS2014-09-151-1/+1
| | | | | | | | | | | | | | | | Github-Pull: #4856
* | | | Merge pull request #4798Wladimir J. van der Laan2014-09-151-6/+6
|\ \ \ \ | |_|_|/ |/| | | | | | | d920f7d Move g_signals.SetBestChain(..) below SyncWithWallets (Cozz Lovan)
| * | | Move g_signals.SetBestChain(..) below SyncWithWalletsCozz Lovan2014-08-311-6/+6
| | | |
* | | | Store fewer orphan tx by default, add -maxorphantx optionGavin Andresen2014-09-101-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no reason to store thousands of orphan transactions; normally an orphan's parents will either be broadcast or mined reasonably quickly. This pull drops the maximum number of orphans from 10,000 down to 100, and adds a command-line option (-maxorphantx) that is just like -maxorphanblocks to override the default.
* | | | Stricter handling of orphan transactionsGavin Andresen2014-09-101-13/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevent denial-of-service attacks by banning peers that send us invalid orphan transactions and only storing orphan transactions given to us by a peer while the peer is connected.
* | | | Fix crashing bug caused by orphan(s) with duplicate prevout.hashGavin Andresen2014-09-101-0/+2
| | | |
* | | | Merge pull request #4878Wladimir J. van der Laan2014-09-101-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 540ac45 Avoid returning many "inv" orphans (Jeff Garzik) d4168c8 Limit CNode::mapAskFor (Wladimir J. van der Laan)
| * | | | Avoid returning many "inv" orphansJeff Garzik2014-09-091-0/+5
| | | | |
* | | | | Merge pull request #4822Pieter Wuille2014-09-101-14/+16
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 629d75f Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins. (Pieter Wuille)
| * | | | | Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins.Pieter Wuille2014-09-031-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The efficient version of CCoinsViewCache::GetCoins only works for known-to-exist cache entries, requiring a separate HaveCoins call beforehand. This is inefficient as both perform a hashtable lookup. Replace the non-mutable GetCoins with AccessCoins, which returns a potentially-NULL pointer. This also decreases the overloading of GetCoins. Also replace some copying (inefficient) GetCoins calls with equivalent AccessCoins, decreasing the copying.
* | | | | | Merge pull request #4868Pieter Wuille2014-09-091-2/+2
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | 2c2cc5d Remove some unnecessary c_strs() in logging and the GUI (Philip Kaufmann) f7d0a86 netbase: Use .data() instead of .c_str() on binary string (Wladimir J. van der Laan)
| * | | | | Remove some unnecessary c_strs() in logging and the GUIPhilip Kaufmann2014-09-091-2/+2
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | Includes `core: remove unneeded c_str() / Qt: replace c_str() with Qt code` by P. Kaufmann.
* / | | | Avoid repeated lookups in mapOrphanTransactions and mapOrphanTransactionsByPrevWladimir J. van der Laan2014-09-081-10/+13
|/ / / /
* | | | Cleanup messy error messagesR E Broadley2014-09-061-2/+2
| | | |
* | | | Introduce BlockMap type for mapBlockIndexPieter Wuille2014-09-041-16/+16
| | | |
* | | | checkpoints.cpp depends on main, it can use mapBlockIndex directlyPieter Wuille2014-09-041-3/+3
|/ / /
* | | Merge pull request #4768Wladimir J. van der Laan2014-09-011-2/+2
|\ \ \ | |/ / |/| | | | | 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-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #4778Jeff Garzik2014-08-291-99/+0
|\ \ \
| * | | Move CMerkleTx to wallet.cpp/hWladimir J. van der Laan2014-08-291-99/+0
| | | | | | | | | | | | | | | | It is only used by the wallet so it has no place in main.
* | | | Merge pull request #4599Jeff Garzik2014-08-291-9/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Create new signal for notification of new blocks. Use w/ -blocknotifyJeff Garzik2014-08-141-5/+3
| | | |
| * | | ui_interface: remove unused NotifyBlocksChanged signalJeff Garzik2014-08-141-4/+1
| | | |
* | | | Merge pull request #4377Pieter Wuille2014-08-271-34/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 654871d replace ComputeMinWork with CheckMinWork (jtimon) b343c1a Move CBlockIndex::GetBlockWork() to pow::GetProofIncrement(nBits) (jtimon) c2c02f3 Move UpdateTime to pow (jtimon)
| * | | | replace ComputeMinWork with CheckMinWorkjtimon2014-08-231-6/+1
| | | | |
| * | | | Move UpdateTime to powjtimon2014-08-231-28/+0
| | | | |
* | | | | Merge pull request #4764Pieter Wuille2014-08-271-17/+26
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | 92bb6f2 Bypass reloading blocks from disk (Pieter Wuille)
| * | | | | 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.