aboutsummaryrefslogtreecommitdiff
path: root/src/chainparamsbase.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace consensus values with Dogecoin equivalentsRoss Nicoll2019-04-031-3/+3
| | | | | | | * Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
* Update copyright headers to 2018DrahtBot2018-07-271-1/+1
|
* Extract MakeUnique into utilmemory.hBen Woosley2018-07-171-0/+1
| | | | | | | And use it to reduce chainparamsbase's direct reliance on util.h to only args handling. utilmemory.h can be replaced with <memory> once we move to C++14.
* Stop translating command line optionsWladimir J. van der Laan2018-05-301-1/+1
| | | | | | | | | | | | | | | | | | | Many options are extremely technical, and refer internals, making it difficult to translate usefully. This came up in discussion of e.g. #10949. If a message is not understood by translators (which are typically end-users, not developers) they'll either translate it literally, making it harder to understand instead of easier, with the added drawback of the user no longer being able to google it. Also the translation was only working for bitcoin-qt as with the console programs, there is no translation backend. So it was injecting never-used translation messages for bitcoin-cli, -tx. For these reasons, stop translating options help completely. This should not affect the output **in any way** except for bitcoin-qt when a non-English language is configured in the locale. This implements #10962.
* Make gArgs aware of the argumentsAndrew Chow2018-05-091-7/+4
| | | | | gArgs knows what the available arguments are and their help. Getting the help message is moved to gArgs and HelpMessage() is removed
* ArgsManager: support config file sectionsAnthony Towns2018-04-111-0/+1
|
* Remove duplicate includespracticalswift2018-04-091-1/+0
|
* Move ChainNameFromCommandLine into ArgsManager and rename to GetChainNameAnthony Towns2018-04-061-14/+0
|
* Merge #12859: Bugfix: Include <memory> for std::unique_ptrWladimir J. van der Laan2018-04-051-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | a5bca13 Bugfix: Include <memory> for std::unique_ptr (Luke Dashjr) Pull request description: Not sure why all these includes were missing, but it's breaking builds for some users: https://bugs.gentoo.org/show_bug.cgi?id=652142 (Added to all files with a reference to `std::unique_ptr`) Tree-SHA512: 8a2c67513ca07b9bb52c34e8a20b15e56f8af2530310d9ee9b0a69694dd05e02e7a3683f14101a2685d457672b56addec591a0bb83900a0eb8e2a43d43200509
| * Bugfix: Include <memory> for std::unique_ptrLuke Dashjr2018-04-021-0/+1
| |
* | Refactor: One CBaseChainParams should be enoughJorge Timón2018-02-081-41/+3
| |
* | Properly alphabetize output of CLI --help option.murrayn2018-02-011-1/+1
|/
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-031-1/+1
|
* scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* Merge #10825: net: set regtest JSON-RPC port to 18443 to avoid conflict with ↵Wladimir J. van der Laan2017-09-061-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | testnet 18332 ce3baa193 changed regtest RPCport to 18443 to avoid conflict with testnet 18332 (Ferdinando M. Ametrano) Pull request description: using the same JSON-RPC default port for both testnet and regtest prevents running both at the same time on the same machine. Since RPCport=P2Pport-1 for both mainnet and testnet, and regtest P2Pport being 18444, 18443 is proposed for regtest RPCport Documentation has been updated (or created where missing); manpages doc/man/bitcoin*.1 could include information for regtest too Tree-SHA512: d42185f7ef54dc918ece19b543c8681d08bb9c5a971394e21f2d9a1091734b091b08df69fab622c207b46f402cf9323ded5b7a33fbd0af722388930169124e7f
| * changed regtest RPCport to 18443 to avoid conflict with testnet 18332Ferdinando M. Ametrano2017-08-041-1/+1
| |
* | scripted-diff: stop using the gArgs wrappersMarko Bencun2017-08-141-2/+2
|/ | | | | | | | They were temporary additions to ease the transition. -BEGIN VERIFY SCRIPT- find src/ -name "*.cpp" ! -wholename "src/util.h" ! -wholename "src/util.cpp" | xargs perl -i -pe 's/(?<!\.)(ParseParameters|ReadConfigFile|IsArgSet|(Soft|Force)?(Get|Set)(|Bool|)Arg(s)?)\(/gArgs.\1(/g' -END VERIFY SCRIPT-
* Chainparams: Use a regular factory for creating chainparamsJorge Timón2017-05-031-11/+8
|
* Remove unused C++ code not covered by unit testspracticalswift2017-04-261-5/+0
|
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* TRIVIAL: Chainparams: Remove unused CBaseUnitTestParamsJorge Timón2015-12-021-13/+0
|
* Constrain rpcport default values to a single location in codeLuke Dashjr2015-12-011-4/+9
|
* Chainparams: Translations: DRY: options and error stringsJorge Timón2015-10-201-12/+11
| | | | Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
* Chainparams: Replace CBaseChainParams::Network enum with string constants ↵Jorge Timón2015-10-201-14/+14
| | | | (suggested by Wladimir)
* Chainparams: CTestNetParams and CRegTestParams extend directly from CChainParamsJorge Timón2015-07-121-2/+3
| | | | | | | ...instead of CMainParams and CTestNetParams respectively Do the same for CBaseChainParams. The inheritance was only reducing readibility in this case
* test: Remove UNITTEST paramsWladimir J. van der Laan2015-03-091-3/+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.
* Merge pull request #5513Wladimir J. van der Laan2015-01-061-4/+0
|\ | | | | | | | | | | 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: drop most boost namespaces and a few header cleanupsCory Fields2015-01-021-4/+0
| | | | | | | | A few boost::asio were left around because they're very wordy otherwise.
* | Merge pull request #5598Wladimir J. van der Laan2015-01-061-4/+0
|\ \ | |/ |/| | | eb0d34b Remove unused chainparam networkID (jtimon)
| * Remove unused chainparam networkIDjtimon2014-12-111-4/+0
| |
* | Added "Core" to copyright headerssandakersmann2014-12-191-1/+1
|/ | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Update comments in chainparams to be doxygen compatibleMichael Ford2014-10-251-14/+13
|
* Merge pull request #4804 from jtimon/chainparams3Wladimir J. van der Laan2014-10-171-10/+15
|\ | | | | Remove CBaseChainParams::NetworkID()
| * squashme on 3fdb9e8c (Bluematt's bikeshedding)jtimon2014-10-161-1/+1
| |
| * SQUASHME: NetworkIdFromCommandLine() function instead of methodjtimon2014-10-101-6/+6
| |
| * Remove CBaseChainParams::NetworkID()jtimon2014-09-211-10/+15
| |
* | Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-10-021-0/+17
| | | | | | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* | Revert merge of pull #4845Wladimir J. van der Laan2014-10-021-17/+0
| | | | | | | | | | | | | | | | | | | | | | It breaks the new mingw tests! See - https://travis-ci.org/bitcoin/bitcoin/jobs/36845581 - https://travis-ci.org/bitcoin/bitcoin/jobs/36845582 This reverts commit 470590277782cce2fe73275c74523aef59a51eab, 5e2e7fcb99738d9254d4030d53e4f711b2fc5ee0, a25fd6be138ff2bff7e2ad6a1a789db523c0193f.
* | Switch testing framework from MAIN to new UNITTEST networkSergioDemianLerner2014-09-291-0/+17
|/ | | | UNITTEST inherites from MAIN but allows synamically changing its parameters using the ModifiableParams() interface
* Apply clang-format on some infrequently-updated filesPieter Wuille2014-09-191-23/+33
|
* cleanup include of assert.hPhilip Kaufmann2014-08-281-1/+2
|
* Can't log to debug log before chain params initializedWladimir J. van der Laan2014-07-151-0/+4
| | | | | | | | | Add a function `AreBaseParamsConfigured` and use this to check before writing to the debug log. This avoids assertions when the application happens to log too early, which happens in the GUI. Messages logged before the base parameters are configured can be shown using `-printtoconsole`.
* Remove unnecessary dependencies for bitcoin-cliWladimir J. van der Laan2014-06-251-0/+93
This commit removes all the unnecessary dependencies (key, core, netbase, sync, ...) from bitcoin-cli. To do this it shards the chain parameters into BaseParams, which contains just the RPC port and data directory (as used by utils and bitcoin-cli) and Params, with the rest.