diff options
| author | Ross Nicoll <[email protected]> | 2021-03-04 10:25:29 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-04 11:25:29 +0100 |
| commit | 8b0dcb523dcda768988f0ed661a70611c3d727b3 (patch) | |
| tree | 92310d01b30ad232f41801c529ab865fcccd07d7 /src/chainparams.cpp | |
| parent | Disable compatibility tests (#1754) (diff) | |
| download | discoin-8b0dcb523dcda768988f0ed661a70611c3d727b3.tar.xz discoin-8b0dcb523dcda768988f0ed661a70611c3d727b3.zip | |
1.21 key prefix (#1710)
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)
Diffstat (limited to 'src/chainparams.cpp')
| -rw-r--r-- | src/chainparams.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 88cf5ef0a..c38754327 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -128,13 +128,13 @@ public: vSeeds.emplace_back("dnsseed.emzy.de"); // Stephan Oeste vSeeds.emplace_back("seed.bitcoin.wiz.biz"); // Jason Maurice - base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,0); - base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,5); - base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,128); - base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; - base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; + base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,30); + base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,22); + base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,158); + base58Prefixes[EXT_PUBLIC_KEY] = {0x02, 0xFA, 0xCA, 0xFD}; + base58Prefixes[EXT_SECRET_KEY] = {0x02, 0xFA, 0xC3, 0x98}; - bech32_hrp = "bc"; + bech32_hrp = "doge"; vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); @@ -229,13 +229,13 @@ public: vSeeds.emplace_back("seed.testnet.bitcoin.sprovoost.nl"); vSeeds.emplace_back("testnet-seed.bluematt.me"); // Just a static list of stable node(s), only supports x9 - base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111); + base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,113); base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196); - base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); + base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,241); base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; - bech32_hrp = "tb"; + bech32_hrp = "tdge"; vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); @@ -351,13 +351,13 @@ public: vFixedSeeds.clear(); - base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111); + base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,113); base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196); - base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); + base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,241); base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; - bech32_hrp = "tb"; + bech32_hrp = "tdge"; fDefaultConsistencyChecks = false; fRequireStandard = true; @@ -437,13 +437,13 @@ public: 0 }; - base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,111); + base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,113); base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196); - base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); + base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,241); base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; - bech32_hrp = "bcrt"; + bech32_hrp = "dcrt"; } /** |