aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #5732Wladimir J. van der Laan2015-02-031-3/+3
|\ | | | | | | 1371e6f Change "insane" to "absurd" (referring to high fees) in text strings and identifiers. (Daira Hopwood)
| * Change "insane" to "absurd" (referring to high fees) in text strings and ↵Daira Hopwood2015-01-311-3/+3
| | | | | | | | | | | | | | | | | | | | identifiers. Note that this will also require translation changes in Transifex for the key "A fee higher than %1 is considered an insanely high fee." which is now "A fee higher than %1 is considered an absurdly high fee." Signed-off-by: Daira Hopwood <[email protected]>
* | Merge pull request #5647Wladimir J. van der Laan2015-02-031-2/+2
|\ \ | | | | | | | | | 3ff735c Increase block download timeout base from 10 to 20 minutes. (Gregory Maxwell)
| * | Increase block download timeout base from 10 to 20 minutes.Gregory Maxwell2015-01-121-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | This harmonizes the block fetch timeout with the existing ping timeout and eliminates a guaranteed eventual failure from congestion collapse for a network operating right at its limit. It's unlikely that we wouldn't suffer other failures if we were really anywhere near the network's limit, and a complete avoidance of congestion collapse risk requires (I think) an exponential back-off. So this isn't a major concern, but I think it's also useful for reducing the complexity of understanding out timeouts.
* | Merge pull request #5713Wladimir J. van der Laan2015-02-031-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | bf6cdeb Increase coverage of DERSIG edge cases (Pieter Wuille) 819bcf9 Add RPC test for DERSIG BIP switchover logic (Pieter Wuille) 5a47811 BIP66 changeover logic (Pieter Wuille) 092e9fe Example unit tests from BIP66 (Pieter Wuille) 80ad135 Change IsDERSignature to BIP66 implementation (Pieter Wuille)
| * | BIP66 changeover logicPieter Wuille2015-02-011-0/+12
| |/
* | Avoid storing a reference passed to SignatureChecker constructorsPieter Wuille2015-02-021-1/+1
| |
* | Use separate SignatureChecker for CMutableTransactionPieter Wuille2015-02-021-1/+1
| |
* | TRIVIAL: fix misleading commentVitalii Demianets2015-01-311-1/+1
| |
* | Remove whitespaces before double colon in errors and logsPavel Janík2015-01-311-95/+95
|/
* Merge pull request #5608Wladimir J. van der Laan2015-01-121-1/+17
|\ | | | | | | 9161303 Introduce 10 minute block download timeout (Pieter Wuille)
| * Introduce 10 minute block download timeoutPieter Wuille2015-01-071-1/+17
| | | | | | | | | | | | | | This will disconnect peers that do not transfer a block in 10 minutes, plus 5 minutes for every previously queued block with validated headers (accomodating downstream bandwidth down to a few kilobytes per second - below that the node would have trouble staying synchronized anyway).
* | Merge pull request #5589Wladimir J. van der Laan2015-01-081-3/+3
|\ \ | |/ |/| | | 23f3435 Rename MAX_TX_SIGOPS to MAX_STANDARD_TX_SIGOPS to match similar policy constant MAX_STANDARD_TX_SIZE (Luke Dashjr)
| * Rename MAX_TX_SIGOPS to MAX_STANDARD_TX_SIGOPS to match similar policy ↵Luke Dashjr2015-01-011-3/+3
| | | | | | | | constant MAX_STANDARD_TX_SIZE
* | Merge pull request #5521Wladimir J. van der Laan2015-01-071-23/+20
|\ \ | | | | | | | | | 0ea28ba Reject non-final txs even in testnet/regtest (Peter Todd)
| * | Reject non-final txs even in testnet/regtestPeter Todd2015-01-041-23/+20
| | | | | | | | | | | | | | | | | | Previous behavior with IsFinalTx() being an IsStandard() rule was rather confusing and interferred with testing of protocols that depended on nLockTime.
* | | Merge pull request #5597Wladimir J. van der Laan2015-01-071-0/+4
|\ \ \ | | | | | | | | | | | | | | | | e413457 Catch LevelDB errors during flush (Pieter Wuille) 02bced1 Bugfix: only track UTXO modification after lookup (Pieter Wuille)
| * | | Catch LevelDB errors during flushPieter Wuille2015-01-041-0/+4
| | | |
* | | | Merge pull request #5535Wladimir J. van der Laan2015-01-071-1/+6
|\ \ \ \ | | | | | | | | | | | | | | | 1c52aad Require sufficent priority for relay of free transactions (Pieter Wuille)
| * | | | Require sufficent priority for relay of free transactionsPieter Wuille2014-12-301-1/+6
| |/ / /
* | | | Merge pull request #5513Wladimir J. van der Laan2015-01-061-2/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 856e862 namespace: drop most boost namespaces and a few header cleanups (Cory Fields) 9b1ab86 namespace: drop boost::assign altogether here (Cory Fields) a324199 namespace: remove boost namespace pollution (Cory Fields)
| * | | | namespace: remove boost namespace pollutionCory Fields2015-01-021-2/+1
| | | | |
* | | | | Merge pull request #5564Wladimir J. van der Laan2015-01-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | de236f5 clarify obscure uses of EvalScript() (Pavel Vasin)
| * | | | | clarify obscure uses of EvalScript()Pavel Vasin2014-12-301-1/+1
| | |/ / / | |/| | | | | | | | | | | | | The 3rd argument of EvalScript() is the unsigned int flags, not a bool.
* | | | | Use arith_uint256 where necessaryWladimir J. van der Laan2015-01-051-4/+5
| | | | | | | | | | | | | | | | | | | | Also add conversion from/to uint256 where needed.
* | | | | String conversions uint256 -> uint256SWladimir J. van der Laan2015-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If uint256() constructor takes a string, uint256(0) will become dangerous when uint256 does not take integers anymore (it will go through std::string(const char*) making a NULL string, and the explicit keyword is no help).
* | | | | Replace direct use of 0 with SetNull and IsNullWladimir J. van der Laan2015-01-051-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace x=0 with .SetNull(), x==0 with IsNull(), x!=0 with !IsNull(). Replace uses of uint256(0) with uint256().
* | | | | On close of splashscreen interrupt verifyDBThomas Zander2015-01-031-0/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | With the splashscreen being able to be closed it is possible to shutdown during the lengthy verifyDB method. (Takes about a minute on my machine). This change allows us to shutdown much sooner. Github-Pull: #5557
* | | | Merge pull request #5476Wladimir J. van der Laan2015-01-021-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 73caf47 Display time offset in the debug window's Peers tab (Pavel Janík) 26a6bae Add time offset to getpeerinfo output (Pavel Janík)
| * | | | Add time offset to getpeerinfo outputPavel Janík2014-12-151-1/+3
| | | | |
* | | | | Merge pull request #5580Wladimir J. van der Laan2015-01-021-1/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | 1b178a7 Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, behave correctly (Luke Dashjr) 228d238 Make CCoinsViewCache's copy constructor private (Luke Dashjr)
| * | | | Bugfix: ConnectBlock: In case the genesis block gets in with fJustCheck, ↵Luke Dashjr2014-12-311-1/+2
| | | | | | | | | | | | | | | | | | | | behave correctly
* | | | | Merge #5578 fromJeff Garzik2014-12-311-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | branch 'error_typos' of git://github.com/paveljanik/bitcoin into merge-5578
| * | | | | Clean AcceptToMemoryPool error messagesPavel Janík2014-12-301-4/+4
| | |_|/ / | |/| | |
* | | | | Move UndoWriteToDisk() and UndoReadFromDisk() to anon namespacejtimon2014-12-271-57/+57
| | | | |
* | | | | MOVEONLY: CBlockUndo from main.h to undo.hjtimon2014-12-271-0/+1
| | | | |
* | | | | Decouple CBlockUndo from CDiskBlockPosjtimon2014-12-271-15/+16
| | | | |
* | | | | Decouple miner.o and txmempool.o from CTxUndojtimon2014-12-271-0/+6
| | | | |
* | | | | Decouple CCoins from CTxInUndojtimon2014-12-271-3/+14
|/ / / /
* | | | Merge pull request #5507Wladimir J. van der Laan2014-12-231-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | c907704 DOS: Respect max per-peer blocks in flight limit (Adam Weiss)
| * | | | DOS: Respect max per-peer blocks in flight limitAdam Weiss2014-12-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't allow immediate inv driven block downloads if a peer already has MAX_BLOCKS_IN_TRANSIT_PER_PEER active downloads. Prevents bogus inv spam from blowing up block transfer tracking data structures.
* | | | | Reject headers that build on an invalid parentPieter Wuille2014-12-221-0/+6
| | | | |
* | | | | Merge pull request #5253Wladimir J. van der Laan2014-12-221-0/+15
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | 7c041b3 Check against MANDATORY flags prior to accepting to mempool (Peter Todd)
| * | | | Check against MANDATORY flags prior to accepting to mempoolPeter Todd2014-11-101-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously transactions were only tested again the STANDARD_SCRIPT_VERIFY_FLAGS prior to mempool acceptance, so any bugs in those flags that allowed actually-invalid transactions to pass would result in allowing invalid transactions into the mempool. Fortunately there is a second check in CreateNewBlock() that would prevent those transactions from being mined, resulting in an invalid block, however this could still be exploited as a DoS attack.
* | | | | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* | | | | add missing CAutoFile::IsNull() check in mainPhilip Kaufmann2014-12-191-0/+2
| |/ / / |/| | | | | | | | | | | | | | | Rebased-From: ccd056a30db0ba5e04b858a682907b378e464d34 Github-Pull: #5437
* | | | make all catch() arguments constPhilip Kaufmann2014-12-171-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | | | Fix small typos in comments and error messagesPavel Janík2014-12-161-4/+4
| |_|/ |/| | | | | | | | | | | Rebased-From: 67b2d819cdf6181e7f016e5366ce7479830893bd Github-Pull: #5404
* | | Move remaining CBlockIndex methods to chain.cppPieter Wuille2014-12-111-48/+0
| | |
* | | Make IsSuperMajority a standalone functionPieter Wuille2014-12-111-5/+10
| | |