aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Chainparams: Explicit CMessageHeader::MessageStartChars to functions in main:Jorge Timón2015-05-272-8/+10
| | | | | -UndoWriteToDisk -WriteBlockToDisk
* Merge pull request #5669Wladimir J. van der Laan2015-05-2716-114/+128
|\ | | | | | | | | da29ecb Consensus: MOVEONLY: Move CValidationState from main consensus/validation (jtimon) 27afcd8 Consensus: Refactor: Decouple CValidationState from main::AbortNode() (Cory Fields)
| * Consensus: MOVEONLY: Move CValidationState from main consensus/validationjtimon2015-05-1516-81/+101
| |
| * Consensus: Refactor: Decouple CValidationState from main::AbortNode()Cory Fields2015-05-152-33/+27
| |
* | Merge pull request #6153Wladimir J. van der Laan2015-05-271-0/+4
|\ \ | | | | | | | | | 8c35b6f Parameter interaction: disable upnp if -proxy set (Wladimir J. van der Laan)
| * | Parameter interaction: disable upnp if -proxy setWladimir J. van der Laan2015-05-181-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | To protect privacy, do not use UPNP when a proxy is set. The user may still specify -listen=1 to listen locally (for a hidden service), so don't rely on this happening through -listen. Fixes #2927.
* | | Merge pull request #6186Wladimir J. van der Laan2015-05-273-9/+18
|\ \ \ | | | | | | | | | | | | | | | | b45c50c Fix two problems in CSubNet parsing (Wladimir J. van der Laan) 19e8d7b Simplify code for CSubnet (Wladimir J. van der Laan)
| * | | Fix two problems in CSubNet parsingWladimir J. van der Laan2015-05-262-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix two CSubNet constructor problems: - The use of `/x` where 8 does not divide x was broken, due to a bit-order issue - The use of e.g. `1.2.3.4/24` where the netmasked bits in the network are not 0 was broken. Fix this by explicitly normalizing the netwok according to the bitmask. Also add tests for these cases. Fixes #6179. Thanks to @jonasschnelli for reporting and initial fix.
| * | | Simplify code for CSubnetWladimir J. van der Laan2015-05-262-8/+8
| | | | | | | | | | | | | | | | | | | | Simplify the code by using CAddress.ip directly, instead of the reversed GetByte() semantics.
* | | | qt: Periodic translation updateWladimir J. van der Laan2015-05-2646-227/+577
| | | |
* | | | Merge pull request #5976Wladimir J. van der Laan2015-05-261-5/+29
|\ \ \ \ | | | | | | | | | | | | | | | 8ba7f84 Reduce download timeouts as blocks arrive (Suhas Daftuar)
| * | | | Reduce download timeouts as blocks arriveSuhas Daftuar2015-04-151-5/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compare the block download timeout to what the timeout would be if calculated based on current time and current value of nQueuedValidatedHeaders, but ignoring other in-flight blocks from the same peer. If the calculation based on present conditions is shorter, then set that to be the time after which we disconnect the peer for not delivering this block.
* | | | | Remove duplicate chainparams.h include from alert_testsMichael Ford2015-05-261-1/+0
| | | | |
* | | | | Merge pull request #5947Wladimir J. van der Laan2015-05-264-0/+133
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | 36cba8f Alert if it is very likely we are getting a bad chain (Gavin Andresen)
| * | | | Alert if it is very likely we are getting a bad chainGavin Andresen2015-05-144-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create a monitoring task that counts how many blocks have been found in the last four hours. If very few or too many have been found, an alert is triggered. "Very few" and "too many" are set based on a false positive rate of once every fifty years of constant running with constant hashing power, which works out to getting 5 or fewer or 48 or more blocks in four hours (instead of the average of 24). Only one alert per day is triggered, so if you get disconnected from the network (or are being Sybil'ed) -alertnotify will be triggered after 3.5 hours but you won't get another -alertnotify for 24 hours. Tested with a new unit test and by running on the main network with -debug=partitioncheck Run test/test_bitcoin --log_level=message to see the alert messages: WARNING: check your network connection, 3 blocks received in the last 4 hours (24 expected) WARNING: abnormally high number of blocks generated, 60 blocks received in the last 4 hours (24 expected) The -debug=partitioncheck debug.log messages look like: ThreadPartitionCheck : Found 22 blocks in the last 4 hours ThreadPartitionCheck : likelihood: 0.0777702
* | | | | Merge pull request #6159Wladimir J. van der Laan2015-05-241-4/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | ffdda4e Catch errors on datadir lock and pidfile delete (Adam Weiss)
| * | | | | Catch errors on datadir lock and pidfile deleteAdam Weiss2015-05-221-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prevents bad permissions (or other fs related problems) from resulting in hard crashes with cryptic messages on startup and shutdown.
* | | | | | Merge pull request #6098Wladimir J. van der Laan2015-05-225-5/+44
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | cc24610 Update Windows resource files (and add one for bitcoin-tx) (Luke Dashjr)
| * | | | | | Update Windows resource files (and add one for bitcoin-tx)Luke Dashjr2015-05-225-5/+44
| | | | | | |
* | | | | | | Fix intermittent hang issue in scheduler_testsWladimir J. van der Laan2015-05-211-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't clear `stopRequested` and `stopWhenEmpty` at the top of `serviceQueue`, as this results in a race condition: on systems under heavy load, some of the threads only get scheduled on the CPU when the other threads have already finished their work. This causes the flags to be cleared post-hoc and thus those threads to wait forever. The potential drawback of this change is that the scheduler cannot be restarted after being stopped (an explicit reset would be needed), but we don't use this functionality anyway.
* | | | | | | Merge pull request #6160Wladimir J. van der Laan2015-05-201-0/+6
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 16d9cb7 [QT] overviewpage: make sure warning icons gets colored (Jonas Schnelli)
| * | | | | | | [QT] overviewpage: make sure warning icons gets coloredJonas Schnelli2015-05-191-0/+6
| | | | | | | |
* | | | | | | | [QT] mainwindow toolbar must not be movableJonas Schnelli2015-05-191-0/+1
|/ / / / / / /
* | | | | | | Merge pull request #5996Wladimir J. van der Laan2015-05-195-15/+47
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 935bd0a Chainparams: Refactor: Decouple main::GetBlockValue() from Params() [renamed GetBlockSubsidy] (Jorge Timón)
| * | | | | | | Chainparams: Refactor: Decouple main::GetBlockValue() from Params() [renamed ↵Jorge Timón2015-05-155-15/+47
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GetBlockSubsidy] Remove redundant getter CChainParams::SubsidyHalvingInterval()
* | | | | | | qt: fix unused function warning in scicon.cppWladimir J. van der Laan2015-05-191-1/+5
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enclose MakeSingleColorImage in an anonymous namespace to avoid a unused function warning on Windows and MacOSX. Github-Pull: #6143
* | | | | | Change default nTxConfirmTarget to 2Alex Morcos2015-05-181-1/+1
| | | | | |
* | | | | | wallet: Introduce constant for `-txconfirmtarget` defaultWladimir J. van der Laan2015-05-183-3/+5
| | | | | |
* | | | | | Merge pull request #6144Wladimir J. van der Laan2015-05-181-1/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | 881027a Remove assertion from ~LockedPageManager (Wladimir J. van der Laan)
| * | | | | | Remove assertion from ~LockedPageManagerWladimir J. van der Laan2015-05-151-1/+0
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This assertion will occur any time that the client quits without shutting down properly due to an error condition. As the user will report this error instead of the error that was the root cause, it is better to remove it.
* | | | | | Merge pull request #6146Gavin Andresen2015-05-163-18/+70
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | f501054 More robust CScheduler unit test (Gavin Andresen)
| * | | | | | More robust CScheduler unit testGavin Andresen2015-05-163-18/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a busy or slow system, the CScheduler unit test could fail because it assumed all threads would be done after a couple of milliseconds. Replace the hard-coded sleep with CScheduler stop() method that will cleanly exit the servicing threads when all tasks are completely finished.
* | | | | | | Merge pull request #6062Wladimir J. van der Laan2015-05-161-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ff7fe8b Fix for correctly including climits on certain platforms {DragonFlyBSD}. (sinetek)
| * | | | | | | Fix for correctly including climits on certain platforms {DragonFlyBSD}.sinetek2015-04-251-1/+1
| | | | | | | |
* | | | | | | | Merge pull request #6137Wladimir J. van der Laan2015-05-161-2/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | a5baba5 minor: remove unneeded bool in CWalletDB::Recover (Philip Kaufmann)
| * | | | | | | | minor: remove unneeded bool in CWalletDB::RecoverPhilip Kaufmann2015-05-141-2/+1
| | | | | | | | |
* | | | | | | | | Merge pull request #6129Wladimir J. van der Laan2015-05-151-3/+2
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | c208040 Fix for clearing fCheckForPruning (Alex Morcos)
| * | | | | | | | Fix for clearing fCheckForPruningAlex Morcos2015-05-151-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously this was cleared only after UnlinkPrunedFiles, but it should really be cleared after FindFilesToPrune, regardless of whether there are any files to be pruned.
* | | | | | | | | qt: translations updateWladimir J. van der Laan2015-05-1513-58/+1816
| |_|_|/ / / / / |/| | | | | | |
* | | | | | | | Merge pull request #6135Wladimir J. van der Laan2015-05-1511-51/+46
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f13dac9 Comment edits and cleanup (BitcoinPRReadingGroup) ff734e9 Alphabetic order in makefile (Jorge Timón) 5207f33 fix header include groups (Philip Kaufmann) 59b149f remove unneeded incude of wallet/db.h from rpcmining.cpp (Philip Kaufmann) 3703385 remove unused classes from db.h (Philip Kaufmann) 0a7bcb7 fix IDE/compiler warning "extra ';'" in validationinterface.h (Philip Kaufmann) 3b00e7c [Trivial] Update COPYING (sandakersmann) dd9e688 Trivial: Corrected owner of DNS seeder (ayeowch) a60bfd8 [init] better message when no wallet support is compiled in (Philip Kaufmann) 78f44b6 Capitalized P2P (sandakersmann) 8e9248d [Trivial] Cryptocurrency is one word (sandakersmann) 803f51e Typo in GetRawMemPool RPC method help: "]" --> "}" (Chris Arnesen) 605a735 addrman: update comments (Pavel Vasin)
| * | | | | | | Comment edits and cleanupBitcoinPRReadingGroup2015-05-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original PR here: https://github.com/bitcoin/bitcoin/pull/6044
| * | | | | | | Alphabetic order in makefileJorge Timón2015-05-141-24/+24
| | | | | | | |
| * | | | | | | fix header include groupsPhilip Kaufmann2015-05-143-8/+9
| | | | | | | |
| * | | | | | | remove unneeded incude of wallet/db.h from rpcmining.cppPhilip Kaufmann2015-05-141-1/+0
| | | | | | | |
| * | | | | | | remove unused classes from db.hPhilip Kaufmann2015-05-141-3/+0
| | | | | | | |
| * | | | | | | fix IDE/compiler warning "extra ';'" in validationinterface.hPhilip Kaufmann2015-05-141-7/+7
| | | | | | | |
| * | | | | | | Trivial: Corrected owner of DNS seederayeowch2015-05-141-1/+1
| | | | | | | |
| * | | | | | | [init] better message when no wallet support is compiled inPhilip Kaufmann2015-05-141-1/+1
| | | | | | | |
| * | | | | | | Typo in GetRawMemPool RPC method help: "]" --> "}"Chris Arnesen2015-05-141-1/+1
| | | | | | | |
| * | | | | | | addrman: update commentsPavel Vasin2015-05-141-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nUnkBias was removed in https://github.com/bitcoin/bitcoin/pull/5941