Peercoin changing minting time on testnet


#1

hi guys, i am doing some test on the testnet and i was not able to change few things to make my test be faster, like the minting time.

the coins mined are going to the minting tab no problem, but when I run : lisminting, show the probability is 0, I know we need stake for 30 and 90 days to start get a profit, but i want do a test in the testnet so i cant wait for so long.

this line of code changes the stake age

>     static const int STAKE_MIN_AGE = 60 * 60 * 24 * 30; // minimum age for coin age
>     static const int STAKE_MAX_AGE = 60 * 60 * 24 * 90; // stake age of full weight

in the testnet this line: nStakeMinAge = 60 * 60 * 24; // test net min age is 1 day

i changed to : nStakeMinAge =1 * 60
to be 1 minute.

#ifdef TESTING
hashGenesisBlock = uint256(“00008d0d88095d31f6dbdbcf80f6e51f71adf2be15740301f5e05cc0f3b2d2c0”);
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 15);
nStakeMinAge = 60 * 60 * 24; // test net min age is 1 day
nCoinbaseMaturity = 60;
bnInitialHashTarget = CBigNum(~uint256(0) >> 15);
nModifierInterval = 60 * 20; // test net modifier interval is 20 minutes
#else
hashGenesisBlock = hashGenesisBlockTestNet;
bnProofOfWorkLimit = CBigNum(~uint256(0) >> 28);
nStakeMinAge = 60 * 60 * 24; // test net min age is 1 day
nCoinbaseMaturity = 60;
bnInitialHashTarget = CBigNum(~uint256(0) >> 29);
nModifierInterval = 60 * 20; // test net modifier interval is 20 minutes
#endif

I found in: rpcminting.cpp this:

  obj.push_back(Pair("minting-probability-10min", kr.getProbToMintWithinNMinutes(difficulty, 10)));
  obj.push_back(Pair("minting-probability-24h",   kr.getProbToMintWithinNMinutes(difficulty, 60*24)));
  obj.push_back(Pair("minting-probability-30d",   kr.getProbToMintWithinNMinutes(difficulty, 60*24*30)));
  obj.push_back(Pair("minting-probability-90d",   kr.getProbToMintWithinNMinutes(difficulty, 60*24*90)));

this lines about chaging the minting time for the coins?

I changed it but seams not working yet.

can someone help me with this testnet?

thank you.