Author

Topic: Newest LTC Source Genesis Block (automake) (Read 352 times)

newbie
Activity: 80
Merit: 0
August 19, 2016, 11:35:37 AM
#1
I'm trying to fork LTC and find the genesis block but adding this snippet of code into chainparams.cpp
Code:
hashGenesisBlock = uint256("0x0");
while (true)
{
   LogPrintf("recalculating params for mainnet.\n");
   LogPrintf("old mainnet genesis nonce: %u\n", genesis.nNonce);
   LogPrintf("old mainnet genesis hash:  %s\n", hashGenesisBlock.ToString().c_str());
   // deliberately empty for loop finds nonce value.
   for(genesis.nNonce == 0; genesis.GetHash() > bnProofOfWorkLimit; genesis.nNonce++){ }
   LogPrintf("new mainnet genesis merkle root: %s\n", genesis.hashMerkleRoot.ToString().c_str());
   LogPrintf("new mainnet genesis nonce: %lld\n", genesis.nNonce);
   LogPrintf("new mainnet genesis hash: %s\n", genesis.GetHash().ToString().c_str());
}

yields nothing.
It crashes one line below this
Code:
assert(hashGenesisBlock == uint256("0x0"));
It's not prompting for the default data directory (when you first time it).
chainparams.cpp:173: CMainParams::CMainParams(): Assertion `hashGenesisBlock == uint256("0x0")' failed.
What am I missing here, Why is'nt this prompting for the data directory or finding the genesis block? Am I missing another step?
I'v removed all checkpoints and nearly everything else. Any help will be appreciated and I will tip you in your choice of LTC or BTC, Please help.

I will pay a bounty for whoever can help me solve this problem.
Jump to: