Bitcoin Forum
August 18, 2024, 04:15:20 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Alternate cryptocurrencies / Altcoin Discussion / Failed to pass CheckProofOfWork() while creating alt coin 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.
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!