aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Switch naming of AuxPoW activation to match BIPxxHeight styleRoss Nicoll2021-06-081-4/+4
| | | | | Also removes the AllowLegacyBlocks() function, to be replaced by directly checking height against the value (as per style used elsewhere).
* Introduce AuxPoW chain parametersRoss Nicoll2021-06-051-0/+16
| | | | Introduce AuxPoW chain parameters. These are not yet used, splitting these out to make validation easier.
* Remove default SignetRoss Nicoll2021-06-021-56/+12
|
* Replace consensus values with Dogecoin equivalentsRoss Nicoll2021-06-021-31/+51
| | | | | | | * Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
* Add Dogecoin block subsidiesRoss Nicoll2021-05-301-12/+17
|
* Update port numbersRoss Nicoll2021-05-291-3/+3
|
* Merge pull request #2204 from rnicoll/1.21-forksPatrick Lodder2021-05-291-12/+14
|\ | | | | Replace feature enablement blocks
| * Replace feature enablement blocksRoss Nicoll2021-05-291-12/+14
| | | | | | | | Replace block hash/heights when features are enabled.
* | Update min chain work and assume validRoss Nicoll2021-05-291-4/+4
|/ | | | Update minimum chain work and block hash to assume preceeding blocks are valid, for main and test networks.
* Merge pull request #1988 from rnicoll/1.21-message-headersPatrick Lodder2021-05-281-8/+8
|\ | | | | Switch to Dogecoin message header
| * Switch to Dogecoin message headerRoss Nicoll2021-05-251-8/+8
| | | | | | | | Update main and testnet3 message headers. Note Dogecoin historically has used Bitcoin message headers for RegTest network, and this continues that legacy.
* | Merge pull request #2198 from rnicoll/1.21-disable-segwit-csvPatrick Lodder2021-05-281-4/+4
|\ \ | | | | | | Disable CSV and SegWit on Dogecoin
| * | Disable CSV and SegWit on DogecoinRoss Nicoll2021-05-281-4/+4
| |/
* | Add testnet checkpointsRoss Nicoll2021-05-251-5/+18
| |
* | Add live checkpointsRoss Nicoll2021-05-251-17/+23
|/
* Update SigNet PoW limit to Scrypt valueRoss Nicoll2021-05-201-1/+1
|
* Make assume valid minimum interval per-chain configurableRoss Nicoll2021-05-201-0/+4
| | | | Make assume valid minimum interval per-chain configurable as syncing 21,000 blocks in a regression test isn't an achievable goal.
* Change regtest block interval to match DogecoinRoss Nicoll2021-05-201-2/+2
| | | | Change regtest block interval to match Dogecoin mainnet. Note this differs from 1.14, which used special regtest values, however regtest should by default match mainnet and the server time is adjusted to make it feasible to mine blocks quickly.
* Dogecoin: Update coinbase maturityRoss Nicoll2021-05-201-18/+28
| | | | | | | * Change coinbase maturity to 240 blocks in most cases, with main/test early chains allowing 30 blocks. I've kept the 240 consistent in regtest to avoid having to redesign a lot of the test cases. * Disabled mining unit test which require COINBASE_MATURITY worth of pre-calculated blocks, as we'd otherwise be constantly refactoring them. * Moved functional test which uses the Bitcoin testnet block data as its reference, as it completely breaks as we introduce Dogecoin data. * Updated standard blockchains for tests from 100/200 to 240/480 as appropriate.
* Update miner confirmation windowRoss Nicoll2021-05-201-6/+6
| | | | | | * Update miner confirmation window to 240 for Dogecoin main net, and update related values. * Re-enable PoW tests with Dogecoin values. * Update version bit tests based on Dogecoin mining values.
* 1.21 key prefix (#1710)Ross Nicoll2021-03-041-15/+15
| | | | | | | | | | | Squash-merged on request. * Dogecoin address prefixes * Use "doge" for BECH32 addresses * Switch Bitcoin references to Dogecoin in Travis * Update addresses in dogecoin-tx tests * Use "doge" for BECH32 addresses * Remove functional tests which do not apply to Dogecoin (backwards compatibility tests do not have suitable clients to test against)
* Move signet onion seed from v2 to v3Sjors Provoost2020-12-161-1/+1
| | | | | Github-Pull: #20660 Rebased-From: 3e6657a14d501c6315ab46ffe7d204684491c710
* Merge #20238: doc: Missing comments for signet parametersMarcoFalke2020-11-161-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9c08f3332c12aa30c70aaf390c876cc5c1f90617 doc: Missing comments for signet parameters (kanon) Pull request description: We have such comment in chainparams.cpp. However in Signet the comments are missing. In example... - Mainnet https://github.com/bitcoin/bitcoin/blob/d67883d01e507dd22d1281f4a4860e79d6a46a47/src/chainparams.cpp#L83-L84 - Testnet https://github.com/bitcoin/bitcoin/blob/d67883d01e507dd22d1281f4a4860e79d6a46a47/src/chainparams.cpp#L196-L197 - Regtest https://github.com/bitcoin/bitcoin/blob/d67883d01e507dd22d1281f4a4860e79d6a46a47/src/chainparams.cpp#L392-L393 ACKs for top commit: theStack: ACK 9c08f3332c12aa30c70aaf390c876cc5c1f90617 Tree-SHA512: d4e488cf01e50d6320282b29d776c11e6b3d423f9268226749f738a57a51f456b6bd48334d2d5a43afa782df65ea15525a0af1688003c1be6ef915c05650e147
| * doc: Missing comments for signet parameterskanon2020-10-261-2/+2
| |
* | Update assumed chain paramsMarcoFalke2020-11-021-20/+20
|/
* Merge #20157: Bugfix: chainparams: Add missing (always enabled) Taproot ↵MarcoFalke2020-10-211-0/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deployment for Signet 2d5793c0161902730cde384dbdf3e3ba3e55c9e0 Bugfix: chainparams: Add missing (disabled) Taproot deployment for Signet (Luke Dashjr) Pull request description: Is there a way we can trigger compiler warnings if a deployment is undefined? ACKs for top commit: decryp2kanon: utACK 2d5793c0161902730cde384dbdf3e3ba3e55c9e0 MarcoFalke: review ACK 2d5793c0161902730cde384dbdf3e3ba3e55c9e0 Tree-SHA512: 135cefae0f8dc552b0f682c2b87cabca7a4716290a36410a55968850e803a5049234e3cc597c8ef8d7917ae5d5ea3fb851e160df171b6793114c6bc01c5ea3e7
| * Bugfix: chainparams: Add missing (disabled) Taproot deployment for SignetLuke Dashjr2020-10-201-0/+5
| |
* | Initialize default-initialized uint256 consensus params to zero explicitlyMarcoFalke2020-10-161-2/+6
| |
* | doc: Move assumed-values doxygen comments to headerMarcoFalke2020-10-151-9/+0
| |
* | signet: Fix uninitialized read in validationMarcoFalke2020-10-151-0/+1
|/
* Activate Taproot/Tapscript on regtest (BIP 341, BIP 342)Pieter Wuille2020-10-121-0/+13
| | | | | Define a versionbits-based activation for the new consensus rules on regtest. No activation or activation mechanism is defined for testnet or mainnet.
* signet: do not log signet startup messages for other chainsJon Atack2020-10-011-2/+0
| | | | and move signet network magic logging from chainparams.cpp to init.cpp
* Merge #20004: test: Add signet witness commitment section parse testsWladimir J. van der Laan2020-09-301-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | fa29b5ae666bbb4c19188f0dcf8a1ba738aac624 test: Add signet witness commitment section parse tests (MarcoFalke) fa23308e9aad70c99a31f91d8556f1876ea02c04 Remove gArgs global from CreateChainParams to aid testing (MarcoFalke) Pull request description: ACKs for top commit: laanwj: ACK fa29b5ae666bbb4c19188f0dcf8a1ba738aac624 Tree-SHA512: f956407d690decbfb8178bcb8f101d107389fecc3aa7be515f7b0f5ceac26d798c165100f7ddf08cec569beabcc6514862dda23b667cc4fd0a784316784735c2
| * Remove gArgs global from CreateChainParams to aid testingMarcoFalke2020-09-291-4/+4
| |
* | signet: Add assumed values for default signetMarcoFalke2020-09-291-8/+18
|/
* signet: hard-coded parameters for Signet Global Network VI (2020-09-07)Karl-Johan Alm2020-09-181-8/+14
| | | | Co-authored-by: Anthony Towns <[email protected]>
* add signet chain and accompanying parametersKarl-Johan Alm2020-09-181-3/+96
| | | | Co-authored-by: Anthony Towns <[email protected]>
* Merge #19316: [net] Cleanup logic around connection typesfanquake2020-08-121-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 01e283068b9e6214f2d77a2f772a4244ebfe2274 [net] Remove unnecessary default args on CNode constructor (Amiti Uttarwar) bc5d65b3ca41eebb1738fdda4451d1466e77772e [refactor] Remove IsOutboundDisconnectionCandidate (Amiti Uttarwar) 2f2e13b6c2c8741ca9d825eaaef736ede484bc85 [net/refactor] Simplify multiple-connection checks (Amiti Uttarwar) 7f7b83deb2427599c129f4ff581d4d045461e459 [net/refactor] Rework ThreadOpenConnections logic (Amiti Uttarwar) 35839e963bf61d2da0d12f5b8cea74ac0e0fbd7b [net] Fix bug where AddrFetch connections would be counted as outbound full relay (Amiti Uttarwar) 4972c21b671ff73f13a1b5053338b6abbdb471b5 [net/refactor] Clarify logic for selecting connections in ThreadOpenConnections (Amiti Uttarwar) 60156f5fc40d56bb532278f16ce632c5a8b8035e [net/refactor] Remove fInbound flag from CNode (Amiti Uttarwar) 7b322df6296609570e368e5f326979279041c11f [net/refactor] Remove m_addr_fetch member var from CNode (Amiti Uttarwar) 14923422b08ac4b21b35c426bf0e1b9e7c97983b [net/refactor] Remove fFeeler flag from CNode (Amiti Uttarwar) 49efac5cae7333c6700d9b737d09fae0f3f4d7fa [net/refactor] Remove m_manual_connection flag from CNode (Amiti Uttarwar) d3698b5ee309cf0f0cdfb286d6b30a256d7deae5 [net/refactor] Add connection type as a member var to CNode (Amiti Uttarwar) 46578c03e92a55925308363ccdad04dcfc820d96 [doc] Describe different connection types (Amiti Uttarwar) 442abae2bac7bff85886143df01e14215532b974 [net/refactor] Add AddrFetch connections to ConnectionType enum (Amiti Uttarwar) af59feb05235ecb85ec9d75b09c66e71268c9889 [net/refactor] Extract m_addr_known logic from initializer list (Amiti Uttarwar) e1bc29812ddf1d946bc5acca406a7ed2dca064a6 [net/refactor] Add block relay only connections to ConnectionType enum (Amiti Uttarwar) 0e52a659a2de915fc3dce37fc8fac39be1c8b6fa [net/refactor] Add feeler connections to ConnectionType enum (Amiti Uttarwar) 1521c47438537e192230486dffcec0228a53878d [net/refactor] Add manual connections to ConnectionType enum (Amiti Uttarwar) 26304b4100201754fb32440bec3e3b78cd3f0e6d [net/refactor] Introduce an enum to distinguish type of connection (Amiti Uttarwar) 3f1b7140e95d0f8f958cb35f31c3d964c57e484d scripted-diff: Rename OneShot to AddrFetch (Amiti Uttarwar) Pull request description: **This is part 1 of #19315, which enables the ability to test `outbound` and `block-relay-only` connections from the functional tests.** Please see that PR for more information of overall functionality. **This PR simplifies how we manage different connection types.** It introduces an enum with the various types of connections so we can explicitly define the connection type. The existing system relies on a series of independent flags, then has asserts scattered around to ensure that conflicting flags are not enabled at the same time. I find this approach to be both brittle and confusing. While making these changes, I found a small bug due to the silent assumptions. This PR also proposes a rename from `OneShot` to `AddrFetch`. I find the name `OneShot` to be very confusing, especially when we also have `onetry` manual connections. Everyone I've talked to offline has agreed that the name is confusing, so I propose a potential alternative. I think this is a good opportunity for a rename since I'm creating an enum to explicitly define the connection types. (some context for the unfamiliar: `oneshot` or `addrfetch` connections are short-lived connections created on startup. They connect to the seed peers, send a `getaddr` to solicit addresses, then close the connection.) Overview of this PR: * rename `oneshot` to `addrfetch` * introduce `ConnectionType` enum * one by one, add different connection types to the enum * expose the `conn_type` on CNode, and use this to reduce reliance on flags (& asserts) * fix the bug in counting different type of connections * some additional cleanup to simplify logic and make expectations explicit/inclusive rather than implicit/exclusive. ACKs for top commit: jnewbery: utACK 01e283068b9e6214f2d77a2f772a4244ebfe2274 laanwj: Code review ACK 01e283068b9e6214f2d77a2f772a4244ebfe2274, the commits are pretty straightforward to follow, and I think this is a move in the right direction overall vasild: ACK 01e283068 sdaftuar: ACK 01e283068b9e6214f2d77a2f772a4244ebfe2274. fanquake: ACK 01e283068b9e6214f2d77a2f772a4244ebfe2274 - I don't have as much experience with the networking code but these changes look fairly straight forward, the new code seems more robust/understandable and the additional documentation is great. I'm glad that a followup branch is already underway. There might be some more review comments here later today, so keep an eye on the discussion, however I'm going to merge this now. jb55: wow this code was messy before... ACK 01e283068b9e6214f2d77a2f772a4244ebfe2274 Tree-SHA512: 7bb644a6ed5849913d777ebc2ff89133ca0fbef680355a9a344e07496a979e6f9ff21a958e8eea93dcd7d5c343682b0c7174b1a3de380a4247eaae73da436e15
| * scripted-diff: Rename OneShot to AddrFetchAmiti Uttarwar2020-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- sed -i 's/a oneshot/an addrfetch/g' src/chainparams.cpp #comment sed -i 's/oneshot/addrfetch/g' src/net.cpp #comment sed -i 's/AddOneShot/AddAddrFetch/g' src/net.h src/net.cpp sed -i 's/cs_vOneShots/m_addr_fetches_mutex/g' src/net.h src/net.cpp sed -i 's/vOneShots/m_addr_fetches/g' src/net.h src/net.cpp sed -i 's/fOneShot/m_addr_fetch/g' src/net.h src/net.cpp src/net_processing.cpp sed -i 's/ProcessOneShot/ProcessAddrFetch/g' src/net.h src/net.cpp -END VERIFY SCRIPT-
* | refactor: use local argsmanager in CRegTestParamsIvan Metlushko2020-07-291-2/+2
|/
* [net] Add seed.bitcoin.wiz.biz to DNS seedswiz2020-06-151-0/+1
|
* scripted-diff: Bump copyright headersMarcoFalke2020-04-161-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* chainparams: Bump assumed valid hashMarcoFalke2020-04-021-14/+14
|
* [test] add chainparams property to indicate chain allows time mockingAmiti Uttarwar2020-02-131-1/+3
|
* scripted-diff: Bump copyright of files changed in 2019MarcoFalke2019-12-301-1/+1
| | | | | | -BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT-
* fix uninitialized variable nMinerConfirmationWindowNullFunctor2019-11-121-2/+2
| | | | | | fix uninitialized variable hard code the MinBIP9WarningHeight fix uninitialized var hard code the MinBIP9WarningHeight instead
* Chainparams: Use name constants in chainparams initializationJorge Timón2019-10-291-3/+3
|
* chainparams: Bump assumed chain paramsMarcoFalke2019-10-011-14/+14
|
* Ignore old versionbit activationsAnthony Towns2019-09-051-0/+3
| | | | | Adds a hardcoded height to the consensus chain parameters for ignoring versionbit activations prior to a fixed height.
* [Consensus] Bury segwit deploymentJohn Newbery2019-08-141-16/+17
| | | | Hardcode segwit deployment height to 481824 for mainnet.