0

I am trying to create altcoin(Abccoin) from bitcoin and change parameters in chainparams.cpp and also generated the genesis block hash and hashMerkleRoot but when I start the daemon with abccoind -daemon

I get the error in debug.log :

ERROR: ReadBlockFromDisk: Errors in block header at CBlockDiskPos(nFile=0, nPos=8)

Using -reindex also doesn't solve the problem, then I got another error :

ERROR: AcceptBlock: high-hash, proof of work failed (code 16)

Does anybody know how to solve this problem?

  • I'm having the same issue. I used the CreateGenesisBlock function. – soupdiver Feb 6 '18 at 13:34
  • I met same problem. have you solved? Any updates? Please share. – creator Feb 26 '18 at 8:04
1

The error means that your genesis block has an invalid Proof of Work.

  • so that means I have to again generate hash with different valid genesis block – user75884 Feb 6 '18 at 5:21
  • How to check if the PoW of the genesis block is valid? – soupdiver Feb 6 '18 at 13:34
  • You actually have to mine the genesis block (it's very easy to do) and check its proof of work when it is being created. You can do that with a while loop to increment the nonce and the CheckProofOfWork() function. – Andrew Chow Feb 6 '18 at 15:34
  • @AndrewChow Hi. So again me.. How exactly do that in chainparams.cpp? If I write CheckProofOfWork() in chainparams.cpp (of course #include "pow.h"), error says........... undefined reference to "CheckProofOfWork(..." – creator Feb 26 '18 at 8:09
  • ok, so I solved link problem, revised makefile.am, and wrote like while(!CheckProofOfWork(genesis.GetHash(), genesis.nBits,,,,, )){ ++genesis.nNonce; }, but still got CBlockDiskPos error with ./xxxcoind run, or AcceptBlock: high-hash, proof of work failed (code 16), Potential stale tip detected, will try using extra outbound peer error with ./xxxcoind -reindex – creator Mar 1 '18 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.