aboutsummaryrefslogtreecommitdiff
path: root/src/consensus
diff options
context:
space:
mode:
authorRoss Nicoll <[email protected]>2017-04-18 13:36:32 +0100
committerRoss Nicoll <[email protected]>2018-09-19 19:21:48 +0100
commit64af132fdba545f9caaa93597ad1f0c0a6b6ade1 (patch)
tree0bd321225d98e61e1ca85fabeb47c76b2dbe84a5 /src/consensus
parentUpdate DB version to 5.1 (diff)
downloaddiscoin-64af132fdba545f9caaa93597ad1f0c0a6b6ade1.tar.xz
discoin-64af132fdba545f9caaa93597ad1f0c0a6b6ade1.zip
Replace consensus values with Dogecoin equivalents
* Replace chain parameters with Dogecoin values * Update maximum coins to match Dogecoin * Disable version 2 block requirement * Update coinbase maturity to match Dogecoin
Diffstat (limited to 'src/consensus')
-rw-r--r--src/consensus/consensus.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/consensus/consensus.h b/src/consensus/consensus.h
index 351911a3a..2876abefb 100644
--- a/src/consensus/consensus.h
+++ b/src/consensus/consensus.h
@@ -17,7 +17,11 @@ static const unsigned int MAX_BLOCK_BASE_SIZE = 1000000;
/** The maximum allowed number of signature check operations in a block (network rule) */
static const int64_t MAX_BLOCK_SIGOPS_COST = 80000;
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
-static const int COINBASE_MATURITY = 100;
+static const int COINBASE_MATURITY = 60*4; // 4 hours of blocks
+/** Coinbase maturity before block 145000 **/
+static const int COINBASE_MATURITY_OLD = 30;
+/** Block at which COINBASE_MATURITY_OLD was deprecated **/
+static const int COINBASE_MATURITY_SWITCH = 145000;
/** Flags for nSequence and nLockTime locks */
enum {