PPCoin: Fixate official block chain parameters
authorSunny King <sunnyking9999@gmail.com>
Thu, 16 Aug 2012 16:36:14 +0000 (17:36 +0100)
committerSunny King <sunnyking9999@gmail.com>
Thu, 16 Aug 2012 16:36:14 +0000 (17:36 +0100)
        coin age min age 30 days
        coinbase/coinstake maturity 500 blocks
        initial difficulty 256

src/checkpoints.h
src/main.cpp
src/main.h

index fb7ac4c..9c1f91d 100644 (file)
@@ -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;
index d1fa019..2a633f6 100644 (file)
@@ -32,7 +32,7 @@ map<uint256, CBlockIndex*> mapBlockIndex;
 set<pair<COutPoint, unsigned int> > 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;
index 5b95a99..6ea3269 100644 (file)
@@ -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