3
3
I have forked PIVX and generated new genesis block hash, merkle root and nonce, and changed the rewards parameters.
It compiles fine and the daemon starts, I have even got 2 nodes connected, but attempting to mine the first block with setgenerate true -1 does not work. getmininginfo says mining = true but the hashratepersec is 0.
My debug.log shows pages and pages of this:
2018-02-01 13:16:55 CreateNewBlock() : TestBlockValidity failed
2018-02-01 13:16:55 CreateNewBlock(): total size 1000
2018-02-01 13:16:55 ERROR: CheckProofOfWork() : hash doesn't match nBits
2018-02-01 13:16:55 ERROR: CheckBlockHeader() : proof of work failed
2018-02-01 13:16:55 ERROR: CheckBlock() : CheckBlockHeader failed
2018-02-01 13:16:55 CreateNewBlock() : TestBlockValidity failed
2018-02-01 13:16:55 CreateNewBlock(): total size 1000
2018-02-01 13:16:55 ERROR: CheckProofOfWork() : hash doesn't match nBits
2018-02-01 13:16:55 ERROR: CheckBlockHeader() : proof of work failed
2018-02-01 13:16:55 ERROR: CheckBlock() : CheckBlockHeader failed
2018-02-01 13:16:55 CreateNewBlock() : TestBlockValidity failed
2018-02-01 13:16:55 CreateNewBlock(): total size 1000
2018-02-01 13:16:55 ERROR: CheckProofOfWork() : hash doesn't match nBits
2018-02-01 13:16:55 ERROR: CheckBlockHeader() : proof of work failed
2018-02-01 13:16:55 ERROR: CheckBlock() : CheckBlockHeader failed
2018-02-01 13:16:55 CreateNewBlock() : TestBlockValidity failed
2018-02-01 13:16:55 CreateNewBlock(): total size 1000
2018-02-01 13:16:55 ERROR: CheckProofOfWork() : hash doesn't match nBits
2018-02-01 13:16:55 ERROR: CheckBlockHeader() : proof of work failed
I think this maybe a small error somewhere but not exactly sure where. Maybe someone would know from experience?
If you are commenting to say "not another coin clone" please save your energy for something more productive.
Thanks!
Have you fixed it yet? I think that you have some miss in your configure. – ThanhPT – 2018-03-21T07:39:34.340
any luck with this i've got the same issue. – Tim Baker – 2018-04-07T02:30:21.527
I am also trying to clone PIVX. Now I feel the issue may be related to the fact that the PIVX is now PoS only. I am currently looking through the commit history to find any code that may break the PoW functionality. – Michael Smith – 2018-12-10T00:59:16.953
Additionally, I did find a parameter in the
chainparams.cppfile namedfSkipProofOfWorkCheckthat when set totruegenerates a different error. – Michael Smith – 2018-12-10T01:01:58.837