Bitcoin Forum
May 30, 2024, 05:46:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Local / Desenvolvimento & Discussões Técnicas / Re: Ferramentas para geração de hash (bloco genesis) on: February 25, 2021, 12:38:54 AM
Olá Srs,

Qual ferramenta os Srs usam para gerar hash do bloco genesis / merkle?


Att


Eu usei esse código antes dos asserts(comente todos os asserts do chainparams.cpp):

arith_uint256 best = arith_uint256();
   int n=0;
   arith_uint256 hashTarget = arith_uint256().SetCompact(genesis.nBits);
   while (UintToArith256(genesis.GetHash()) > hashTarget) {
     arith_uint256 c=UintToArith256(genesis.GetHash());
               
     if(c < best || n==0)
       {
         best = c;
         n=1;
         printf("%s %s %s\n",genesis.GetHash().GetHex().c_str(),hashTarget.GetHex().c_str(),
           best.GetHex().c_str());
       }
    
     ++genesis.nNonce;
     if (genesis.nNonce == 0) { ++genesis.nTime; }
   }
   printf("%s\n",genesis.ToString().c_str());
2  Local / Criptomoedas Alternativas / Re: [Ajuda]Novo Genesis Block on: January 05, 2021, 12:40:06 AM
Postei o código no Pastebin
https://pastebin.com/zM0VhVWe

O MerkleRoot e o hashGenesisBlock eu criei usando o script GenesisH0 (https://github.com/lhartikk/GenesisH0) com o scrypt
3  Local / Criptomoedas Alternativas / [Ajuda]Novo Genesis Block on: January 03, 2021, 09:06:36 PM
Pessoal, após alterar o Genesis Block da Litecoin(da branch Master) utilizando um script em python, o executável me retorna um `Assert failed` e não cria a pasta e nem o debug.log

Alguma ideia do que fazer?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!