From c453bcc9e5fd98ae4aebd1f2fc85192b5fd7410a Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sun, 5 Jul 2015 17:45:38 +0100 Subject: Adapt AuxPoW to Dogecoin Changed AuxPoW parent block hashing to use Scrypt rather than SHA256 hash. Update chain parameters to match Dogecoin Move CheckProofOfWork into dogecoin.cpp and rename it to CheckAuxPowProofOfWork. Add operator overrides to CBlockVersion so that naive usage operates on the underlying version without chain ID or flags. Modify RPC mining to more closely match existing submitblock() structure --- src/chainparams.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/chainparams.cpp') diff --git a/src/chainparams.cpp b/src/chainparams.cpp index b573aa80a..8a5e613c7 100644 --- a/src/chainparams.cpp +++ b/src/chainparams.cpp @@ -39,10 +39,10 @@ public: consensus.nPowTargetTimespan = 4 * 60 * 60; // pre-digishield: 4 hours consensus.nPowTargetSpacing = 60; // 1 minute consensus.fPowAllowMinDifficultyBlocks = false; - consensus.nAuxpowChainId = 0x0001; - consensus.nAuxpowStartHeight = 19200; + consensus.nAuxpowChainId = 0x0062; // 98 - Josh Wise! + consensus.nAuxpowStartHeight = 371337; consensus.fStrictChainId = true; - consensus.nLegacyBlocksBefore = 19200; + consensus.nLegacyBlocksBefore = 371337; /** * The message start string is designed to be unlikely to occur in normal data. * The characters are rarely used upper ASCII, not valid as UTF-8, and produce @@ -152,9 +152,9 @@ public: consensus.nMajorityRejectBlockOutdated = 75; consensus.nMajorityWindow = 100; consensus.fPowAllowMinDifficultyBlocks = true; - consensus.nAuxpowStartHeight = 0; + consensus.nAuxpowStartHeight = 158100; consensus.fStrictChainId = false; - consensus.nLegacyBlocksBefore = -1; + consensus.nLegacyBlocksBefore = 158100; pchMessageStart[0] = 0xfc; pchMessageStart[1] = 0xc1; -- cgit v1.2.3