diff options
| author | Ross Nicoll <[email protected]> | 2015-07-05 08:47:41 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-07-05 09:06:51 +0100 |
| commit | 3de28f1f9dff74b60073e2c24e62b239bdd7902b (patch) | |
| tree | 4a6364c697964d846e5109043d770d494c50e4fa /src/chainparams.cpp | |
| parent | Merge pull request #1194 from patricklodder/1.10-unit-tests (diff) | |
| download | discoin-3de28f1f9dff74b60073e2c24e62b239bdd7902b.tar.xz discoin-3de28f1f9dff74b60073e2c24e62b239bdd7902b.zip | |
Further unit test corrections
Replace RPC and deterministic signatures in unit tests with Dogecoin values. While
conventionally I'd use an alternative implementation for these, as RFC 6979
compliant signature generation isn't terribly common, and there's no reason
to suspect we've modified this code, I'm going to assert that it's good enough
to test that the code doesn't provide different values.
Correct BIP32 key headers for Dogecoin, also by repacking the data.
Disabled Bitcoin PoW tests, but left code in place to simplify later merges. These are
replaced by the Dogecoin PoW tests.
Diffstat (limited to 'src/chainparams.cpp')
| -rw-r--r-- | src/chainparams.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chainparams.cpp b/src/chainparams.cpp index 9662adaa0..cabff98c6 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -91,8 +91,8 @@ public: base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,30); // 0x1e base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,22); // 0x16 base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,158); // 0x9e - base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x88)(0xc4)(0x2e).convert_to_container<std::vector<unsigned char> >(); - base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x88)(0xe1)(0xf4).convert_to_container<std::vector<unsigned char> >(); + base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x02)(0xfa)(0xca)(0xfd).convert_to_container<std::vector<unsigned char> >(); + base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x02)(0xfa)(0xc3)(0x98).convert_to_container<std::vector<unsigned char> >(); //TODO: fix this for dogecoin -- plddr //vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main)); @@ -172,8 +172,8 @@ public: base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,113); // 0x71 base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,196); // 0xc4 base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,241); // 0xf1 - base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0xd1)(0xdf).convert_to_container<std::vector<unsigned char> >(); - base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x75)(0xa4).convert_to_container<std::vector<unsigned char> >(); + base58Prefixes[EXT_PUBLIC_KEY] = boost::assign::list_of(0x04)(0x35)(0x87)(0xcf).convert_to_container<std::vector<unsigned char> >(); + base58Prefixes[EXT_SECRET_KEY] = boost::assign::list_of(0x04)(0x35)(0x83)(0x94).convert_to_container<std::vector<unsigned char> >(); //TODO: fix this for dogecoin -- plddr //vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_test, pnSeed6_test + ARRAYLEN(pnSeed6_test)); |