aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
Commit message (Collapse)AuthorAgeFilesLines
* Re-introduce alert functionality (#1470)Ross Nicoll2018-09-191-0/+3
| | | Re-introduce alert functionality removed from Bitcoin upstream
* Move COINBASE_MATURITY to the consensus parameters (#1426)Ross Nicoll2018-09-191-15/+1
|
* Modify chain consensus parameters to be height aware (#1396)Ross Nicoll2018-09-191-1/+19
| | | | | | | | | * Modify chain consensus parameters to be height aware * Correct implementation of simplified rewards in parameters * Correct max money * Use base block version in IsSuperMajority() instead of full version * Correct mining of blocks in AuxPoW tests * Add in missing pre-AuxPoW consensus checks
* Merge AuxPoW support from NamecoreRoss Nicoll2018-09-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Shorten variable names and switch to tx/sPieter Wuille2017-01-111-3/+3
|
* Move tx estimation data out of CCheckPointDataPieter Wuille2017-01-041-0/+5
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-311-1/+1
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* RPC: Chainparams: Remove Chainparams::fTestnetToBeDeprecatedFieldRPCJorge Timón2016-10-181-3/+0
|
* Allow changing BIP9 parameters on regtestSuhas Daftuar2016-07-291-0/+5
|
* Do not set extra flags for unfiltered DNS seed resultsPieter Wuille2016-06-151-3/+1
|
* Add support for dnsseeds with option to filter by servicebitsJonas Schnelli2016-05-251-2/+5
|
* Remove alert keysBtcDrak2016-03-181-3/+0
|
* Merge pull request #7208Wladimir J. van der Laan2016-01-181-2/+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-2/+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.
* | Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|/
* Trivial: Fix warning introduced by #7053 by casting to uint64_tJorge Timón2015-11-291-1/+1
|
* Merge pull request #6235Wladimir J. van der Laan2015-10-201-8/+7
|\ | | | | | | | | 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-6/+0
| | | | | | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
| * Chainparams: Replace CBaseChainParams::Network enum with string constants ↵Jorge Timón2015-10-201-4/+9
| | | | | | | | (suggested by Wladimir)
* | Merge pull request #5987Wladimir J. van der Laan2015-10-011-0/+2
|\ \ | |/ |/| | | 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/+2
| | | | | | | | testnet-in-a-box use case)
* | chainparams: move CCheckpointData into chainparams.hCory Fields2015-07-281-3/+10
|/ | | | | This unties CChainParams from its dependency on checkpoints. Instead, now it only depends on the raw checkpoint data.
* Merge pull request #6398Wladimir J. van der Laan2015-07-131-2/+0
|\ | | | | | | 85ee55b rpc: Remove chain-specific RequireRPCPassword (Wladimir J. van der Laan)
| * rpc: Remove chain-specific RequireRPCPasswordWladimir J. van der Laan2015-07-101-2/+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.
* Chainparams: Refactor: Decouple main::GetBlockValue() from Params() [renamed ↵Jorge Timón2015-05-151-1/+0
| | | | | | GetBlockSubsidy] Remove redundant getter CChainParams::SubsidyHalvingInterval()
* Chainparams: Refactor: Decouple IsSuperMajority from Params()Jorge Timón2015-05-061-3/+0
|
* Merge pull request #6055Wladimir J. van der Laan2015-05-061-1/+2
|\ | | | | | | | | | | | | 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-1/+2
| | | | | | | | This drops the virtual call and simplifies the logic
* | Merge pull request #6085Wladimir J. van der Laan2015-05-041-3/+3
|\ \ | |/ |/| | | | | b05a89b Non-grammatical language improvements (Luke Dashjr) 7e6d23b Bugfix: Grammar fixes (Corinne Dashjr)
| * Non-grammatical language improvementsLuke Dashjr2015-05-021-1/+1
| |
| * Bugfix: Grammar fixesCorinne Dashjr2015-05-011-2/+2
| |
* | chainparams: use SeedSpec6's rather than CAddress's for fixed seedsCory Fields2015-04-241-2/+8
|/ | | | This negates the need for CAddress here at all
* Add block pruning functionalitymrbandrews2015-04-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* Chainparams: Refactor: Remove redundant AllowMinDifficultyBlocks() getterJorge Timón2015-04-151-2/+0
|
* Merge pull request #5997Wladimir J. van der Laan2015-04-151-1/+0
|\ | | | | | | 4e38217 Chainparams: Refactor: Remove redundant HashGenesisBlock() getter (Jorge Timón)
| * Chainparams: Refactor: Remove redundant HashGenesisBlock() getterJorge Timón2015-04-121-1/+0
| |
* | Chainparams: Cleanup: Delete CChainParams getters to attributes from ↵Jorge Timón2015-04-131-4/+0
| | | | | | | | Consensus::Params
* | consensus: don't use arith_uint256 in consensus.hCory Fields2015-04-101-2/+1
|/ | | | 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-21/+14
|
* test: remove fSkipProofOfWorkWladimir J. van der Laan2015-03-091-3/+0
| | | | | Not used, and REGTEST already allows creating blocks at the lowerst possible difficulty.
* test: Remove UNITTEST paramsWladimir J. van der Laan2015-03-091-22/+0
| | | | | | | | | UNITTEST parameter are not used by any current tests, and the model (modifyable parameters) is inconvenient when unit-testing. As they are stored in a global structure eevery test would have to (re)set up its own parameters. For consistency it is also better to test with MAIN parameters.
* make CMessageHeader a dumb storage classCory Fields2015-02-251-4/+2
| | | | It shouldn't know or care about bitcoind's chain param selection
* Rename Interval() to DifficultyAdjustmentInterval()Shaul Kfir2015-02-171-1/+1
|
* Merge pull request #5598Wladimir J. van der Laan2015-01-061-1/+0
|\ | | | | | | eb0d34b Remove unused chainparam networkID (jtimon)
| * Remove unused chainparam networkIDjtimon2014-12-111-1/+0
| |
* | Use arith_uint256 where necessaryWladimir J. van der Laan2015-01-051-3/+3
| | | | | | | | Also add conversion from/to uint256 where needed.
* | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
|/ | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* MOVEONLY: core/ -> primitives/Luke Dashjr2014-12-031-1/+1
|