Author

Topic: Mining alt coin always return AcceptBlock: high-hash, proof of work failed (Read 164 times)

newbie
Activity: 29
Merit: 6
For academic research I'm trying to create new independent chain where blocks are created in seconds. Therefore, I need a new genesis block for my main and test networks.

I have a private network of nodes that connect between them. I'm not trying to connect/post to the real BTC network.

***********EDIT**********
The problem solved by using the pow and the consensus parameters that used in the bitcoin itself.
full member
Activity: 1275
Merit: 141
Again what are you trying to mine.  Appears BTC but that wont work because that block is gone many years ago.  What chain (ie what coin) are you trying to generate for?

If you are spinning up a new chain then you will need a lot more than just a miner to make that happen.  None of the nodes on the BTC network or any other active coin will authenticate that block.

Please explain what you are trying to do because it doesnt make a lot of sense from what you have posted.  If you think you can just start a blockchain you got a lot more pieces missing than just a miner.

newbie
Activity: 29
Merit: 6
I'm trying that the genesis block will be accepted by the PoW algorithm
full member
Activity: 1275
Merit: 141
What are you trying to mine?

newbie
Activity: 29
Merit: 6
I'm trying to mine new blocks (based on bitcoin v 0.20.1) to different networks (mainnet and testnet). During the creation of the genesis block I changed some of the parameters like nTime, nNonce and nBits.

The hash I received from CreateGenesisBlock was update at
Code:
assert(consensus.hashGenesisBlock == uint256S(""));

I also updated these values:

Code:
consensus.powLimit = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
consensus.nMinimumChainWork = uint256S("7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");

When I'm re compiling the code and trying to build the network, I always get this error:
Code:
AcceptBlock: high-hash, proof of work failed

What I'm doing wrong? Which parameters I should change that the block will be accepted?
Does the problem is the hash of the genesis?
Jump to: