Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: tujiulong on March 06, 2014, 02:44:14 AM



Title: Failed to pass CheckProofOfWork() while creating alt coin
Post by: tujiulong on March 06, 2014, 02:44:14 AM
Hi, all. I am trying to make a new alt coin under the guide of https://bitcointalk.org/index.php?topic=225690.0.

However, after replaced the hashGenesisBlock and hashMerkleRoot with values in debug.log, it then trapped in CheckProofOfWork():
ERROR: CheckProofOfWork() : hash doesn't match nBits
ERROR: CBlock::ReadFromDisk() : errors in block header


here is some info:
bnTarget.getuint256 = 00000000ffff0000000000000000000000000000000000000000000000000000
GetPoWHash() = 7e5dc830454890c1c373c22d355decca63c03a8d4caea66c32fb7c22658ac123

I don't see anyway to make it pass the following check in CheckProofOfWork():
Code:
if (hash > bnTarget.getuint256())
        return error("CheckProofOfWork() : hash doesn't match nBits");


What am I doing wrong? thx.


Title: Re: Failed to pass CheckProofOfWork() while creating alt coin
Post by: Kergekoin on April 02, 2014, 06:21:27 AM
Newer code genesis block has to be created in different way i quess. As i dont know which base you are using, i cant help you. There are few scripts out there to create genesis block.


Title: Re: Failed to pass CheckProofOfWork() while creating alt coin
Post by: stokecrypto on April 02, 2014, 06:26:55 AM
theres already enough shitcoins


Title: Re: Failed to pass CheckProofOfWork() while creating alt coin
Post by: pdrobek on April 29, 2016, 10:16:54 AM
Hi

Im facing with the same issue as described in topic

2016-04-29 10:01:31 ERROR: CheckProofOfWork() : hash doesn't match nBits
2016-04-29 10:01:31 ERROR: CheckBlockHeader() : proof of work failed

If i set SkipProofOfWorkCheck to true i can synchronize with Polcoin blockchain.

Polcoin genesis block was generated in 2014 with reworked bitcoin 0.8.6r2

Now im trying to compile bitcoin-core which should work in polcoin network

Can you help?