Skip to content

Instantly share code, notes, and snippets.

View omarbaruzzo's full-sized avatar

Omar Baruzzo omarbaruzzo

View GitHub Profile
@omarbaruzzo
omarbaruzzo / gist:a86a65d890ed823013315ea2d3727c2d
Created June 28, 2018 13:21
GenesisCalculator - code to be included in chainparams.cpp to calculate the genesis block, nnonce, merkle root etc.
#include "arith_uint256.h"//Mod.
//----------------------------------------------------------------------------------------------------------
//Mod.
/*
// calcolo del Blocco Genesi
// Resettiamo il valore del blocco
consensus.hashGenesisBlock = uint256S("0x");
std::cout << std::string("Iniziamo a calcolare il blocco:\n");
if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) {