diff options
| author | Ross Nicoll <[email protected]> | 2015-07-05 17:45:38 +0100 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-07-10 20:23:14 +0100 |
| commit | c453bcc9e5fd98ae4aebd1f2fc85192b5fd7410a (patch) | |
| tree | 0422e17d73ffc244e48ba41c4ea63cd39c8b09dd /src/primitives/pureheader.cpp | |
| parent | Merge AuxPoW support from Namecore (diff) | |
| download | discoin-c453bcc9e5fd98ae4aebd1f2fc85192b5fd7410a.tar.xz discoin-c453bcc9e5fd98ae4aebd1f2fc85192b5fd7410a.zip | |
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
Diffstat (limited to 'src/primitives/pureheader.cpp')
| -rw-r--r-- | src/primitives/pureheader.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/primitives/pureheader.cpp b/src/primitives/pureheader.cpp index c90d5fd8e..94f14499b 100644 --- a/src/primitives/pureheader.cpp +++ b/src/primitives/pureheader.cpp @@ -10,14 +10,6 @@ #include "hash.h" #include "utilstrencodings.h" -void CBlockVersion::SetBaseVersion(int32_t nBaseVersion) -{ - assert(nBaseVersion >= 1 && nBaseVersion < VERSION_AUXPOW); - assert(!IsAuxpow()); - const int32_t nChainId = Params().GetConsensus().nAuxpowChainId; - nVersion = nBaseVersion | (nChainId * VERSION_CHAIN_START); -} - uint256 CPureBlockHeader::GetHash() const { return SerializeHash(*this); |