From 5065be85c2dc1452e05c63d0017da0c096f68006 Mon Sep 17 00:00:00 2001 From: Sunny King Date: Thu, 16 Aug 2012 17:36:14 +0100 Subject: [PATCH] PPCoin: Fixate official block chain parameters coin age min age 30 days coinbase/coinstake maturity 500 blocks initial difficulty 256 --- src/checkpoints.h | 2 +- src/main.cpp | 2 +- src/main.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/checkpoints.h b/src/checkpoints.h index fb7ac4c..9c1f91d 100644 --- a/src/checkpoints.h +++ b/src/checkpoints.h @@ -9,7 +9,7 @@ #include "net.h" #include "util.h" -#define STAKE_MIN_AGE (60 * 60 * 24) // minimum age for coin age +#define STAKE_MIN_AGE (60 * 60 * 24 * 30) // minimum age 30 days for coin age #define CHECKPOINT_MAX_SPAN (60 * 60 * 4) // max 4 hours before latest block class uint256; diff --git a/src/main.cpp b/src/main.cpp index d1fa019..2a633f6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,7 +32,7 @@ map mapBlockIndex; set > setStakeSeen; uint256 hashGenesisBlock = hashGenesisBlockOfficial; static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32); -static CBigNum bnInitialHashTarget(~uint256(0) >> 36); +static CBigNum bnInitialHashTarget(~uint256(0) >> 40); CBlockIndex* pindexGenesisBlock = NULL; int nBestHeight = -1; uint64 nBestChainTrust = 0; diff --git a/src/main.h b/src/main.h index 5b95a99..6ea3269 100644 --- a/src/main.h +++ b/src/main.h @@ -32,13 +32,13 @@ static const unsigned int MAX_BLOCK_SIZE = 1000000; static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2; static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50; static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100; -static const int64 MIN_TX_FEE = 10000; -static const int64 MIN_RELAY_TX_FEE = 10000; +static const int64 MIN_TX_FEE = CENT; +static const int64 MIN_RELAY_TX_FEE = CENT; static const int64 MAX_MONEY = 2000000000 * COIN; static const int64 MAX_MINT_PROOF_OF_WORK = 9999 * COIN; static const int64 MIN_TXOUT_AMOUNT = MIN_TX_FEE; inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); } -static const int COINBASE_MATURITY = 100; +static const int COINBASE_MATURITY = 500; // Threshold for nLockTime: below this value it is interpreted as block number, otherwise as UNIX timestamp. static const int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC #ifdef USE_UPNP -- 1.7.1