aboutsummaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2016-02-21 16:49:03 +0100
committerPatrick Lodder <[email protected]>2016-02-21 16:49:03 +0100
commitf626f8f43672a940c7840577b007f3d0010c2179 (patch)
tree283a89be14a8c0f9166ff05eafa86de1e4711808 /src/core.h
parentMerge branch '1.8.3-dev' into 1.8-maint (diff)
parentMerge pull request #1309 from Sporklin/1.8.3-dev-Fixmanpagesports (diff)
downloaddiscoin-1.8-archive.tar.xz
discoin-1.8-archive.zip
Merge branch '1.8.3-dev' into 1.8-maint1.8-archive
merges the actually released 1.8.3 into 1.8-maint
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core.h b/src/core.h
index 6a0286f9d..ae1e463c7 100644
--- a/src/core.h
+++ b/src/core.h
@@ -33,6 +33,7 @@ static const int BLOCK_VERSION_DEFAULT = (1 << 0);
static const int BLOCK_VERSION_AUXPOW = (1 << 8);
static const int BLOCK_VERSION_CHAIN_START = (1 << 16);
static const int BLOCK_VERSION_CHAIN_END = (1 << 30);
+static const int BLOCK_VERSION_BASE_MASK = 0x000000ff;
// DogeCoin aux chain ID = 0x0062 (98)
static const int AUXPOW_CHAIN_ID = 0x0062;
@@ -364,7 +365,7 @@ class CBlockHeader
{
public:
// header
- static const int CURRENT_VERSION=2;
+ static const int CURRENT_VERSION=3;
int nVersion;
uint256 hashPrevBlock;
uint256 hashMerkleRoot;
@@ -396,6 +397,12 @@ public:
return nVersion / BLOCK_VERSION_CHAIN_START;
}
+ // base block version without auxpow chain
+ int GetBaseVersion() const
+ {
+ return nVersion & BLOCK_VERSION_BASE_MASK;
+ }
+
void SetAuxPow(CAuxPow* pow);
void SetNull()