Peercoin genesis block creation


#21

You were right about breaking some code during all the modification… I also forgotten to disable the check for the stake modifiers, which led to some errors. That is now also fixed.

After executing peercoind with the -gen parameter, the debug.log is outputting this over and over again:

2018-05-03 15:00:41 GetProofOfWorkReward() : create=2499.75 nBits=0x1c00ffff nSubsidy=2499750000
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=9999000000 mid=4999505000
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=4999505000 mid=2499757500
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=2499757500 mid=1249883750
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=1249883750 upper=2499757500 mid=1874820625
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=1874820625 upper=2499757500 mid=2187289062
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2187289062 upper=2499757500 mid=2343523281
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2343523281 upper=2499757500 mid=2421640390
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2421640390 upper=2499757500 mid=2460698945
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2460698945 upper=2499757500 mid=2480228222
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2480228222 upper=2499757500 mid=2489992861
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2489992861 upper=2499757500 mid=2494875180
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2494875180 upper=2499757500 mid=2497316340
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2497316340 upper=2499757500 mid=2498536920
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2498536920 upper=2499757500 mid=2499147210
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499147210 upper=2499757500 mid=2499452355
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499452355 upper=2499757500 mid=2499604927
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499604927 upper=2499757500 mid=2499681213
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499681213 upper=2499757500 mid=2499719356
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499719356 upper=2499757500 mid=2499738428
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499738428 upper=2499757500 mid=2499747964
2018-05-03 15:00:41 GetProofOfWorkReward() : create=2499.75 nBits=0x1c00ffff nSubsidy=2499750000
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=9999000000 mid=4999505000
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=4999505000 mid=2499757500
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=10000 upper=2499757500 mid=1249883750
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=1249883750 upper=2499757500 mid=1874820625
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=1874820625 upper=2499757500 mid=2187289062
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2187289062 upper=2499757500 mid=2343523281
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2343523281 upper=2499757500 mid=2421640390
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2421640390 upper=2499757500 mid=2460698945
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2460698945 upper=2499757500 mid=2480228222
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2480228222 upper=2499757500 mid=2489992861
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2489992861 upper=2499757500 mid=2494875180
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2494875180 upper=2499757500 mid=2497316340
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2497316340 upper=2499757500 mid=2498536920
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2498536920 upper=2499757500 mid=2499147210
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499147210 upper=2499757500 mid=2499452355
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499452355 upper=2499757500 mid=2499604927
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499604927 upper=2499757500 mid=2499681213
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499681213 upper=2499757500 mid=2499719356
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499719356 upper=2499757500 mid=2499738428
2018-05-03 15:00:41 GetProofOfWorkReward() : lower=2499738428 upper=2499757500 mid=2499747964
2018-05-03 15:00:41 GetProofOfWorkReward() : create=2499.75 nBits=0x1c00ffff nSubsidy=2499750000

Output of getblocktemplate:
bibz@bibz-u:~/newpeer/peercoin/src$ ./peercoind getblocktemplate
{
“version” : 2,
“previousblockhash” : “00000000cc81b048d51648d4309f23e93ab39148cd75d615752517d90a2a1a12”,
“transactions” : [
],
“coinbaseaux” : {
“flags” : “062f503253482f”
},
“coinbasevalue” : 2499750000,
“target” : “0000000000ffff00000000000000000000000000000000000000000000000000”,
“mintime” : 1525351625,
“mutable” : [
“time”,
“transactions”,
“prevblock”
],
“noncerange” : “00000000ffffffff”,
“sigoplimit” : 20000,
“sizelimit” : 1000000,
“curtime” : 1525359851,
“bits” : “1c00ffff”,
“height” : 1
}

If I do a “getblockcount”, it returns “0”. Is that normal?

Also I will try my luck with a new “clean” testnet codebase…


#22

Thanks to everyone for the help. This is not to be taken for granted imho.

How I managed to fix my last “problem”? Well, either you keep waiting for your CPU to solve it or as I did:

  1. setup UNOMP pool
  2. point antminer s9 to pool

thats it. My hashrate was just not enough or I was not patient enough to let it finish.

special thanks goes out to @nohea for helping in this thread, but also in discord.

PS to the visitors that may find this through goolgle: check out the discord, its full of cool people :slight_smile: