aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge #8204: Update petertodd's testnet seedWladimir J. van der Laan2016-06-231-1/+1
|\ \ | |/ |/| | | d80efec Update petertodd's testnet seed (Peter Todd)
| * Update petertodd's testnet seedPeter Todd2016-06-151-1/+1
| | | | | | | | New seed with servicebit filtering support.
* | Do not set extra flags for unfiltered DNS seed resultsPieter Wuille2016-06-151-8/+0
|/
* Add support for dnsseeds with option to filter by servicebitsJonas Schnelli2016-05-251-0/+10
|
* [doc] Fix doxygen comments for membersMarcoFalke2016-04-031-2/+2
|
* Merge #7648: BIP9 versionbits softfork for BIP68, BIP112 and BIP113Wladimir J. van der Laan2016-03-301-1/+16
|\ | | | | | | | | | | | | | | | | 71527a0 Test of BIP9 fork activation of mtp, csv, sequence_lock (NicolasDorier) 19d73d5 Add RPC test for BIP 68/112/113 soft fork. (Alex Morcos) 12c89c9 Policy: allow transaction version 2 relay policy. (BtcDrak) 02c2435 Soft fork logic for BIP68 (BtcDrak) 478fba6 Soft fork logic for BIP113 (BtcDrak) 65751a3 Add CHECKSEQUENCEVERIFY softfork through BIP9 (Pieter Wuille)
| * Add CHECKSEQUENCEVERIFY softfork through BIP9Pieter Wuille2016-03-181-1/+16
| |
* | Remove alert keysBtcDrak2016-03-181-2/+0
|/
* Add testing of ComputeBlockVersionSuhas Daftuar2016-03-151-0/+9
|
* BIP9 ImplementationPieter Wuille2016-03-151-0/+6
| | | | | Inspired by former implementations by Eric Lombrozo and Rusty Russell, and based on code by Jorge Timon.
* Merge pull request #7208Wladimir J. van der Laan2016-01-181-3/+0
|\ | | | | | | 64360f1 Make max tip age an option instead of chainparam (Wladimir J. van der Laan)
| * Make max tip age an option instead of chainparamWladimir J. van der Laan2015-12-141-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | After discussion in #7164 I think this is better. Max tip age was introduced in #5987 to make it possible to run testnet-in-a-box. But associating this behavior with the testnet chain is wrong conceptually, as it is not needed in normal usage. Should aim to make testnet test the software as-is. Replace it with a (debug) option `-maxtipage`, which can be specified only in the specific case.
* | Merge pull request #7205Wladimir J. van der Laan2016-01-051-1/+1
|\ \ | | | | | | | | | | | | | | | fa71669 [devtools] Use git pretty-format for year parsing (MarcoFalke) fa24439 Bump copyright headers to 2015 (MarcoFalke) fa6ad85 [devtools] Rewrite fix-copyright-headers.py (MarcoFalke)
| * | Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
| |/
* / Removed offline testnet DNSSeed 'alexykot.me'.Elias Rohrer2015-12-151-1/+0
|/
* Switch blocks to a constant-space Merkle root/branch algorithm.Pieter Wuille2015-11-271-1/+2
| | | | | | | | | | | This switches the Merkle tree logic for blocks to one that runs in constant (small) space. The old code is moved to tests, and a new test is added that for various combinations of block sizes, transaction positions to compute a branch for, and mutations: * Verifies that the old code and new code agree for the Merkle root. * Verifies that the old code and new code agree for the Merkle branch. * Verifies that the computed Merkle branch is valid. * Verifies that mutations don't change the Merkle root. * Verifies that mutations are correctly detected.
* Make skipping BIP30 check chain agnosticAlex Morcos2015-11-021-0/+6
|
* Merge pull request #6235Wladimir J. van der Laan2015-10-201-20/+10
|\ | | | | | | | | 55a8975 Chainparams: Translations: DRY: options and error strings (Jorge Timón) f3525e2 Chainparams: Replace CBaseChainParams::Network enum with string constants (suggested by Wladimir) (Jorge Timón)
| * Chainparams: Translations: DRY: options and error stringsJorge Timón2015-10-201-10/+0
| | | | | | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
| * Chainparams: Replace CBaseChainParams::Network enum with string constants ↵Jorge Timón2015-10-201-11/+11
| | | | | | | | (suggested by Wladimir)
* | Added fPowNoRetargeting field to Consensus::Params that disables nBits ↵Eric Lombrozo2015-10-191-0/+3
| | | | | | | | recalculation.
* | Merge pull request #5987Wladimir J. van der Laan2015-10-011-0/+3
|\ \ | | | | | | | | | e761d7a Bugfix: Allow mining on top of old tip blocks for testnet (fixes testnet-in-a-box use case) (Luke Dashjr)
| * | Bugfix: Allow mining on top of old tip blocks for testnet (fixes ↵Luke Dashjr2015-09-291-0/+3
| | | | | | | | | | | | testnet-in-a-box use case)
* | | Do not store Merkle branches in the wallet.Pieter Wuille2015-09-221-1/+1
| |/ |/| | | | | | | | | | | | | | | | | Assume that when a wallet transaction has a valid block hash and transaction position in it, the transaction is actually there. We're already trusting wallet data in a much more fundamental way anyway. To prevent backward compatibility issues, a new record is used for storing the block locator in the wallet. Old wallets will see a wallet file synchronized up to the genesis block, and rescan automatically.
* | Merge pull request #6242Wladimir J. van der Laan2015-08-201-6/+4
|\ \ | |/ |/| | | | | 17221bf chainparams: don't use std namespace (Cory Fields) f0deec5 chainparams: move CCheckpointData into chainparams.h (Cory Fields)
| * chainparams: don't use std namespaceCory Fields2015-07-281-3/+1
| |
| * chainparams: move CCheckpointData into chainparams.hCory Fields2015-07-281-3/+3
| | | | | | | | | | This unties CChainParams from its dependency on checkpoints. Instead, now it only depends on the raw checkpoint data.
* | Clean up chainparams some more.Daniel Kraft2015-07-291-8/+12
|/ | | | | | | | | | Clean up the code in chainparams a bit more after the recent refactorings. In particular, make sure the structure of the "RegTest" params matches the structure of the other classes. This makes the code clearer to read. Also remove redundant values of the genesis block in always-specified optional arguments and mark variable/argument as "const".
* Merge pull request #6381Wladimir J. van der Laan2015-07-211-35/+56
|\ | | | | | | | | c4973aa Chainparams: CTestNetParams and CRegTestParams extend directly from CChainParams (Jorge Timón) d3cf546 Chainparams: Introduce CreateGenesisBlock() static function (Jorge Timón)
| * Chainparams: CTestNetParams and CRegTestParams extend directly from CChainParamsJorge Timón2015-07-121-8/+16
| | | | | | | | | | | | | | ...instead of CMainParams and CTestNetParams respectively Do the same for CBaseChainParams. The inheritance was only reducing readibility in this case
| * Chainparams: Introduce CreateGenesisBlock() static functionJorge Timón2015-07-121-27/+40
| |
* | Merge pull request #6398Wladimir J. van der Laan2015-07-131-3/+0
|\ \ | |/ |/| | | 85ee55b rpc: Remove chain-specific RequireRPCPassword (Wladimir J. van der Laan)
| * rpc: Remove chain-specific RequireRPCPasswordWladimir J. van der Laan2015-07-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | I've never liked the chain-specific exception to having to set a password. It gives issues with #6388 which makes it valid to set no password in every case (as it enables random cookie authentication). This pull removes the flag, so that all chains are regarded the same. It also removes the username==password test, which doesn't provide any substantial extra security.
* | Remove ChainParams::DefaultMinerThreadsWladimir J. van der Laan2015-07-031-3/+0
|/ | | | | | No longer relevant after #5957. This hack existed because of another hack where the numthreads parameter, on regtest, doubled as how many blocks to generate.
* Explicitly set tx.nVersion for the genesis block and mining testsMark Friedenbach2015-06-021-0/+1
| | | | If/when CTransaction::CURRENT_VERSION is incremented, this will break CChainParams and the miner tests. This fix sets the transaction version explicitly where we depend on the hash value (genesis block, proof of work checks).
* Trivial: Corrected owner of DNS seederayeowch2015-05-141-1/+1
|
* Merge pull request #6055Wladimir J. van der Laan2015-05-061-57/+37
|\ | | | | | | | | | | | | 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: make checkpoints a member of CChainParamsCory Fields2015-04-301-57/+37
| | | | | | | | This drops the virtual call and simplifies the logic
| * checkpoints: store mapCheckpoints in CCheckpointData rather than a pointerCory Fields2015-04-301-3/+3
| |
* | Merge pull request #6080Wladimir J. van der Laan2015-05-051-0/+1
|\ \ | | | | | | | | | 1a0259f add jonasschnellis dns seeder (Jonas Schnelli)
| * | add jonasschnellis dns seederJonas Schnelli2015-04-291-0/+1
| | |
* | | Merge pull request #6085Wladimir J. van der Laan2015-05-041-4/+5
|\ \ \ | |_|/ |/| | | | | | | | b05a89b Non-grammatical language improvements (Luke Dashjr) 7e6d23b Bugfix: Grammar fixes (Corinne Dashjr)
| * | Non-grammatical language improvementsLuke Dashjr2015-05-021-4/+5
| |/
* / chainparams: use SeedSpec6's rather than CAddress's for fixed seedsCory Fields2015-04-241-27/+2
|/ | | | This negates the need for CAddress here at all
* Add block pruning functionalitymrbandrews2015-04-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | This adds a -prune=N option to bitcoind, which if set to N>0 will enable block file pruning. When pruning is enabled, block and undo files will be deleted to try to keep total space used by those files to below the prune target (N, in MB) specified by the user, subject to some constraints: - The last 288 blocks on the main chain are always kept (MIN_BLOCKS_TO_KEEP), - N must be at least 550MB (chosen as a value for the target that could reasonably be met, with some assumptions about block sizes, orphan rates, etc; see comment in main.h), - No blocks are pruned until chainActive is at least 100,000 blocks long (on mainnet; defined separately for mainnet, testnet, and regtest in chainparams as nPruneAfterHeight). This unsets NODE_NETWORK if pruning is enabled. Also included is an RPC test for pruning (pruning.py). Thanks to @rdponticelli for earlier work on this feature; this is based in part off that work.
* Add operator names to DNS Seed listMichael Ford2015-04-201-5/+5
|
* consensus: don't use arith_uint256 in consensus.hCory Fields2015-04-101-2/+2
| | | | Requiring arith_uint256 at such a base level is not good for modularity.
* Add a consistency check for the block chain data structuresPieter Wuille2015-03-271-3/+3
| | | | | | This adds a -checkblockindex (defaulting to true for regtest), which occasionally does a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive, and mapBlocksUnlinked.
* Consensus: Refactor: Introduce Consensus::Params classJorge Timón2015-03-251-28/+23
|
* test: remove fSkipProofOfWorkWladimir J. van der Laan2015-03-091-1/+0
| | | | | Not used, and REGTEST already allows creating blocks at the lowerst possible difficulty.