Skip to content

Instantly share code, notes, and snippets.

View Yarpii's full-sized avatar
🧠

Jeffrey Stendert Yarpii

🧠
View GitHub Profile
@Yarpii
Yarpii / litecoin genesis block
Created June 22, 2018 11:00 — forked from dmikey/litecoin genesis block
create litecoin genesis block, the missing code
assert(block.hashMerkleRoot == uint256("0x38ca78a781d3c571a681ea2241ffb1e0d89bd1ecd3499f1bf6edeaa8751e7151"));
// If genesis block hash does not match, then generate new genesis hash.
if (false && block.GetHash() != hashGenesisBlock)
{
printf("Searching for genesis block...\n");
// This will figure out a valid hash and Nonce if you're
// creating a different genesis block:
uint256 hashTarget = CBigNum().SetCompact(block.nBits).getuint256();
uint256 thash;