aboutsummaryrefslogtreecommitdiff
path: root/src/chainparams.h
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-03-22 18:29:34 +0100
committerjtimon <jtimon@monetize.io>2014-06-23 23:10:24 +0200
commitfd704c7b2c5ab8b24b1829f000b829d7156b8b3c (patch)
treed5da5ec14cdcdd195464e4482e08dadce7cf91df /src/chainparams.h
parentdf852d2bcc6573a3fcb3e59f82f7ea4dfa11290e (diff)
move pow constants to chainparams
Diffstat (limited to 'src/chainparams.h')
-rw-r--r--src/chainparams.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/chainparams.h b/src/chainparams.h
index c0a6ebda6b..e9774bbfa2 100644
--- a/src/chainparams.h
+++ b/src/chainparams.h
@@ -70,6 +70,9 @@ public:
bool AllowMinDifficultyBlocks() const { return fAllowMinDifficultyBlocks; }
/* Make standard checks */
bool RequireStandard() const { return fRequireStandard; }
+ int64_t TargetTimespan() const { return nTargetTimespan; }
+ int64_t TargetSpacing() const { return nTargetSpacing; }
+ int64_t Interval() const { return nTargetTimespan / nTargetSpacing; }
const std::string& DataDir() const { return strDataDir; }
/* Make miner stop after a block is found. In RPC, don't return
* until nGenProcLimit blocks are generated */
@@ -95,6 +98,8 @@ protected:
int nEnforceBlockUpgradeMajority;
int nRejectBlockOutdatedMajority;
int nToCheckBlockUpgradeMajority;
+ int64_t nTargetTimespan;
+ int64_t nTargetSpacing;
std::string strDataDir;
int nMinerThreads;
std::vector<CDNSSeedData> vSeeds;