lightenup gave me this advice for generating a genesis block:
Well, change something in the genesis block data and observe the assertion when you start the node software.
For actual genesis block generation look at what happens after the assertion in the code:
Code:
assert(block.hashMerkleRoot == uint256("0x5a2e19825b4162f68602039040f1e05d9f924ff00a3aff7327ca6abd6f3279bc"));
// If genesis block hash does not match, then generate new genesis hash.
if (false && block.GetHash() != hashGenesisBlock)
{
So you'd need to change this if(false && ... ) to if (true && ...) s.t. the node software tries to find the genesis hash.
Concerning your previous question: you need to lookup base58. It appears that the letter S is encoded as 62 and s (smaller case S) is 63, 64 would be a T a.s.o. .. I just counted away from the original Litecoin code base where it has been an L.
So using all the other advice can someone confirm the following for me:
- Step 1 Set the nonce value to 0 and change the Timestamp to a recent headling
- change the false&& to true&&
- Compile the software
- When It attempts to find the block and see if it does not match the timestamp if will begin mining the new genesis block
- Once it does this successfully example the block.dat and get the hash
- hardcode the hash into the code
- job complete
Is this about right?