aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Changing to the proper ports for Dogecoin.Sporklin2015-10-311-1/+1
|
* Update copyright header to include DogecoinSporklin2015-10-311-0/+2
|
* qt: Introduce PlatformStyleWladimir J. van der Laan2015-10-311-0/+3
| | | | | | | | | | | | | | Introduce a PlatformStyle to handle platform-specific customization of the UI. This replaces 'scicon', as well as #ifdefs to determine whether to place icons on buttons. The selected PlatformStyle defaults to the platform that the application was compiled on, but can be overridden from the command line with `-uiplatform=<x>`. Also fixes the warning from #6328.
* Update Bitcoin references and addresses in strings to Dogecoin equivalentsRoss Nicoll2015-10-311-13/+13
|
* Match fee calculation to legacy codeJ Ross Nicoll2015-09-061-3/+8
| | | | | Purge all support for zero-fee transactions Disable IsDust() for backwards compatibility
* Add NODE_BLOOM service bit and bump protocol versionPeter Todd2015-08-281-0/+6
| | | | | | | | | | | | | | Lets nodes advertise that they offer bloom filter support explicitly. The protocol version bump allows SPV nodes to assume that NODE_BLOOM is set if NODE_NETWORK is set for pre-70002 nodes. Also adds an undocumented option to turn bloom filter support off for testing purposes. Nodes attempting to use bloom filters are immediately dropped so as to not waste their bandwidth. ensure backward compatible service bits update protocol version to 70004
* advertise block height addition to -blocknotifystolen data2015-08-111-1/+1
|
* Add block height to block notification substitution optionsRoss Nicoll2015-08-111-1/+3
|
* Add paper wallet generator to QT walletAndymeows2015-08-071-1/+1
|
* Add chain height when fetching consensus parameters in initializationRoss Nicoll2015-07-301-1/+1
| | | | | Add chain height when fetching consensus parameters in initialization, this code was missed in the first patch as it was disabled at the time.
* Revert "Disable partition check for now, it triggers too often (issue #6251)"Wladimir J. van der Laan2015-07-291-2/+2
| | | | | | Re-enable partition check, it should be safe again after #6256. This reverts commit 3eada74d6f4720e650c67461c04c3aafdeaff21e.
* Modify chain consensus parameters to be height awareRoss Nicoll2015-07-191-1/+1
|
* Adapt AuxPoW to DogecoinRoss Nicoll2015-07-101-2/+0
| | | | | | | | Changed AuxPoW parent block hashing to use Scrypt rather than SHA256 hash. Update chain parameters to match Dogecoin Move CheckProofOfWork into dogecoin.cpp and rename it to CheckAuxPowProofOfWork. Add operator overrides to CBlockVersion so that naive usage operates on the underlying version without chain ID or flags. Modify RPC mining to more closely match existing submitblock() structure
* Merge AuxPoW support from NamecoreDaniel Kraft2015-07-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Includes the following commits: commit 2ea1b5cd8cf2bdd08e43ae39fb76352eebe14895 commit f2a8220c34275f022f02d81e9e84d4cec33bd51c commit 84b8b56113e6057b0253475b83e797dc1fed2eed commit 8471d5db221f145f5a40022ed1897c1b996b628e commit 2f125ad0a67e1b8f71b18a14a3b41d7e577391d1 commit e01dbc3608703b4cb4e9882738125f2b7816cdb8 commit f0421312631cd44669f9f84d339a0c470b4423b9 commit 1fd522db5dfddfd0e1b0c794b82fae2cc7bdb099 commit 71f63ad99f70ff6461c795fd728aea16aa1008f8 commit a7c44d98a8ded4df0e8455c4c5629b1a5b303bbf commit e1d7b4fc15addf3dfeb3853fa66230a8bdacd75f commit d016f2fa02572fd340129176b942b3f19bd5260b commit f4716e5a168a697afce854a37350fdae0988bdd8 commit 03a575e3b13bf06cbb0a007d6672b05d2085c26e commit d7ea37444bd9e9ac461a3dda0b16afefd160b062 commit db22affa01e050ff847a12e20c83b88952d80b59 commit 9b7e14986655f914b2d0903ca1d79367c92c6c7e commit e21034f9c124893d5b9631e9ca231b0b9ede3d52 Changes are as below: Wrap CBlockHeader::nVersion into a new class (CBlockVersion). This allows to take care of interpreting the field into a base version, auxpow flag and the chain ID. Update getauxblock.py for new 'generate' RPC call. Add 'auxpow' to block JSON. Accept auxpow as PoW verification. Add unit tests for auxpow verification. Add check for memory-layout of CBlockVersion. Weaken auxpow chain ID checks for the testnet. Allow Params() to overrule when to check the auxpow chain ID and for legacy blocks. Use this to disable the checks on testnet. Introduce CPureBlockHeader. Split the block header part that is used by auxpow and the "real" block header (that uses auxpow) to resolve the cyclic dependency between the two. Differentiate between uint256 and arith_uint256. This change was done upstream, modify the auxpow code. Add missing lock in auxpow_tests. Fix REST header check for auxpow headers. Those can be longer, thus take that into account. Also perform the check actually on an auxpow header. Correctly set the coinbase for getauxblock results. Call IncrementExtraNonce in getauxblock so that the coinbase is actually initialised with the stuff it should be. (BIP30 block height and COINBASE_FLAGS.) Implement getauxblock plus regression test. Turn auxpow test into FIXTURE test. This allows using of the Params() calls. Move CMerkleTx code to auxpow.cpp. Otherwise we get linker errors when building without wallet. Fix rebase with BIP66. Update the code to handle BIP66's nVersion=3. Enforce that auxpow parent blocks have no auxpow block version. This is for compatibility with namecoind. See also https://github.com/namecoin/namecoin/pull/199. Move auxpow-related parameters to Consensus::Params.
* Litecoin: Scrypt n=1024 Pow hash based upon Colin Percival's Tarnsnap (2009)Warren Togami2015-06-281-0/+4
| | | | | | Modified by Artforz, coblee, pooler, wtogami, Nikolay Belikov, Adrian Gallagher miner.cpp changes stripped during merge to Dogecoin
* Use best header chain timestamps to detect partitioningGavin Andresen2015-06-151-1/+1
| | | | | | | | | | | The partition checking code was using chainActive timestamps to detect partitioning; with headers-first syncing, it should use (and with this pull request, does use) pIndexBestHeader timestamps. Fixes issue #6251 Github-Pull: #6256 Rebased-From: 65b94545036ae6e38e79e9c7166a3ba1ddb83f66
* Add option `-alerts` to opt out of alert systemWladimir J. van der Laan2015-06-151-0/+3
| | | | | | | | | | | | | Make it possible to opt-out of the centralized alert system by providing an option `-noalerts` or `-alerts=0`. The default remains unchanged. This is a gentler form of #6260, in which I went a bit overboard by removing the alert system completely. I intend to add this to the GUI options in another pull after this. Github-Pull: #6274 Rebased-From: 02a6702a82a5b00e0e0351041dd3267308b7f319
* Remove translation for -help-debug optionsWladimir J. van der Laan2015-06-121-23/+25
| | | | | Github-Pull: #6264 Rebased-From: 9b5659d1c4c62bc6b80e35ff7573c781835e4187
* Prune: Support noncontiguous block filesAdam Weiss2015-06-111-17/+36
| | | | | | | | | | | | | | | | | | In some corner cases, it may be possible for recent blocks to end up in the same block file as much older blocks. Previously, the pruning code would stop looking for files to remove upon first encountering a file containing a block that cannot be pruned, now it will keep looking for candidate files until the target is met and all other criteria are satisfied. This can result in a noncontiguous set of block files (by number) on disk, which is fine except for during some reindex corner cases, so make reindex preparation smarter such that we keep the data we can actually use and throw away the rest. This allows pruning to work correctly while downloading any blocks needed during the reindex. Rebased-From: c257a8c9a6397eee40734b235a4fdcb8045aec91 Github-Pull: #6221
* Disable partition check for now, it triggers too often (issue #6251)Wladimir J. van der Laan2015-06-081-2/+2
|
* Remove P2SH coinbase flag, no longer interestingLuke Dashjr2015-06-021-6/+0
| | | | | Github-Pull: #6203 Rebased-From: d449772cf69c01932fc5d72c46054815d6300b3c
* Merge pull request #5669Wladimir J. van der Laan2015-05-271-0/+1
|\ | | | | | | | | 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-151-0/+1
| |
* | 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 #5947Wladimir J. van der Laan2015-05-261-0/+8
|\ \ \ | | | | | | | | | | | | 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-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | wallet: Introduce constant for `-txconfirmtarget` defaultWladimir J. van der Laan2015-05-181-2/+2
| |_|/ |/| |
* | | Merge pull request #6135Wladimir J. van der Laan2015-05-151-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * | | [init] better message when no wallet support is compiled inPhilip Kaufmann2015-05-141-1/+1
| | | |
* | | | Merge pull request #6102Wladimir J. van der Laan2015-05-151-8/+10
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 86a5f4b Relocate calls to CheckDiskSpace (Alex Morcos) 67708ac Write block index more frequently than cache flushes (Pieter Wuille) b3ed423 Cache tweak and logging improvements (Pieter Wuille) fc684ad Use accurate memory for flushing decisions (Pieter Wuille) 046392d Keep track of memory usage in CCoinsViewCache (Pieter Wuille) 540629c Add memusage.h (Pieter Wuille)
| * | | Cache tweak and logging improvementsPieter Wuille2015-05-111-8/+10
| | | |
| * | | Use accurate memory for flushing decisionsPieter Wuille2015-05-111-1/+1
| | |/ | |/|
* | | Merge pull request #5964Gavin Andresen2015-05-141-2/+7
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 9a1dcea Use CScheduler for net's DumpAddresses (Gavin Andresen) ddd0acd Create a scheduler thread for lightweight tasks (Gavin Andresen) 68d370b CScheduler unit test (Gavin Andresen) cfefe5b scheduler: fix with boost <= 1.50 (Cory Fields) ca66717 build: make libboost_chrono mandatory (Cory Fields) 928b950 CScheduler class for lightweight task scheduling (Gavin Andresen) e656560 [Qt] add defaultConfirmTarget constant to sendcoinsdialog (Philip Kaufmann)
| * | Use CScheduler for net's DumpAddressesGavin Andresen2015-05-141-1/+1
| | | | | | | | | | | | | | | Instead of starting Yet Another Thread to dump addresses, use CScheduler to do it.
| * | Create a scheduler thread for lightweight tasksGavin Andresen2015-05-141-1/+6
| |/
* / Clean up parsing of bool command line argsAlex Morcos2015-05-121-5/+5
|/
* re-add -reindex help messageJonas Schnelli2015-05-081-1/+1
| | | | was suddenly removed with fc44231cb72afae2fffe0fac64e236a1d33b90e6 (probably not by purpose)
* Merge pull request #6047Wladimir J. van der Laan2015-05-061-0/+4
|\ | | | | | | | | a56054b Update key.cpp to use new libsecp256k1 (Pieter Wuille) a591d98 Squashed 'src/secp256k1/' changes from 1897b8e..22f60a6 (Pieter Wuille)
| * Update key.cpp to use new libsecp256k1Pieter Wuille2015-05-041-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libsecp256k1's API changed, so update key.cpp to use it. Libsecp256k1 now has explicit context objects, which makes it completely thread-safe. In turn, keep an explicit context object in key.cpp, which is explicitly initialized destroyed. This is not really pretty now, but it's more efficient than the static initialized object in key.cpp (which made for example bitcoin-tx slow, as for most of its calls, libsecp256k1 wasn't actually needed). This also brings in the new blinding support in libsecp256k1. By passing in a random seed, temporary variables during the elliptic curve computations are altered, in such a way that if an attacker does not know the blind, observing the internal operations leaks less information about the keys used. This was implemented by Greg Maxwell.
* | Merge pull request #6055Wladimir J. van der Laan2015-05-061-1/+1
|\ \ | | | | | | | | | | | | | | | | | | a8cdaf5 checkpoints: move the checkpoints enable boolean into main (Cory Fields) 11982d3 checkpoints: Decouple checkpoints from Params (Cory Fields) 6996823 checkpoints: make checkpoints a member of CChainParams (Cory Fields) 9f13a10 checkpoints: store mapCheckpoints in CCheckpointData rather than a pointer (Cory Fields)
| * | checkpoints: move the checkpoints enable boolean into mainCory Fields2015-04-301-1/+1
| | | | | | | | | | | | | | | This pertains to app-state, so it doesn't make sense to handle inside the checkpoint functions.
* | | trivial: Merge pruning help message after Transifex commentWladimir J. van der Laan2015-05-041-5/+3
| | | | | | | | | | | | | | | | | | | | | The prune help message was broken in nonsensical parts. Merge it into one, this is easier for translators. Reported by yahoe.001 on transifex.
* | | Show an init message while activating best chainWladimir J. van der Laan2015-05-041-0/+1
| | | | | | | | | | | | | | | | | | Connecting the chain can take quite a while. All the while it is still showing `Loading wallet...`. Add an init message to inform the user what is happening.
* | | Merge pull request #6085Wladimir J. van der Laan2015-05-041-2/+2
|\ \ \ | |/ / |/| | | | | | | | b05a89b Non-grammatical language improvements (Luke Dashjr) 7e6d23b Bugfix: Grammar fixes (Corinne Dashjr)
| * | Bugfix: Grammar fixesCorinne Dashjr2015-05-011-2/+2
| | |
* | | Merge pull request #6022Wladimir J. van der Laan2015-04-301-1/+1
|\ \ \ | |/ / |/| | | | | b74dcb3 Separate CTranslationInterface from CClientUIInterface (Jorge Timón)
| * | Separate CTranslationInterface from CClientUIInterfaceJorge Timón2015-04-161-1/+1
| | |