This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calculate Genesis Block | |
// Reset genesis | |
consensus.hashGenesisBlock = uint256S("0x"); | |
std::cout << std::string("Begin calculating Mainnet Genesis Block:\n"); | |
if (true && (genesis.GetHash() != consensus.hashGenesisBlock)) { | |
LogPrintf("Calculating Mainnet Genesis Block:\n"); | |
arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits); | |
uint256 hash; | |
genesis.nNonce = 0; |