Bitcoin Forum
June 15, 2024, 03:42:36 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Failed to pass CheckProofOfWork() while creating alt coin  (Read 811 times)
tujiulong (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
March 06, 2014, 02:44:14 AM
 #1

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.
Kergekoin
Hero Member
*****
Offline Offline

Activity: 546
Merit: 500


View Profile
April 02, 2014, 06:21:27 AM
 #2

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.

******  NB! The links below are affiliate - friend type links, which bring additional benefits both, to you and me  ******
Binance - Best Crypto Trading Platform          CoinBase - Fastest way from FIAT to Crypto
Windscribe - The quickest and easyest way to secure and anonymize your internet traffic
stokecrypto
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
April 02, 2014, 06:26:55 AM
 #3

theres already enough shitcoins
pdrobek
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile WWW
April 29, 2016, 10:16:54 AM
 #4

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?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!