Bitcoin Forum
May 08, 2024, 01:44:29 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: null  (Read 519 times)
urfl241 (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 21, 2014, 02:28:31 AM
Last edit: August 16, 2014, 07:47:09 PM by urfl241
 #1

null
1715175869
Hero Member
*
Offline Offline

Posts: 1715175869

View Profile Personal Message (Offline)

Ignore
1715175869
Reply with quote  #2

1715175869
Report to moderator
1715175869
Hero Member
*
Offline Offline

Posts: 1715175869

View Profile Personal Message (Offline)

Ignore
1715175869
Reply with quote  #2

1715175869
Report to moderator
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
YarkoL
Legendary
*
Offline Offline

Activity: 996
Merit: 1013


View Profile
April 21, 2014, 05:48:21 PM
 #2

You need to mine some more... search for "genesis block" threads on this forum, the question has been answered number of times already.

“God does not play dice"
mammix2
Legendary
*
Offline Offline

Activity: 1302
Merit: 1004



View Profile
April 21, 2014, 08:04:28 PM
 #3

Somewhere just after the function
Code:
bool InitBlockIndex()

Do you have the actual genesis hash mining code in there, i know the up to date Litecoin code doesn't include it by default. It will look something like this. If you need it, insert this at line 2832 (Correct line number for the very latest Litecoin code 0.8.7.1 source)



Code:
        // If genesis block hash does not match, then generate new genesis hash.
        if (true && 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;
            char scratchpad[SCRYPT_SCRATCHPAD_SIZE];

            loop
            {
#if defined(USE_SSE2)
                // Detection would work, but in cases where we KNOW it always has SSE2,
                // it is faster to use directly than to use a function pointer or conditional.
#if defined(_M_X64) || defined(__x86_64__) || defined(_M_AMD64) || (defined(MAC_OSX) && defined(__i386__))
                // Always SSE2: x86_64 or Intel MacOS X
                scrypt_1024_1_1_256_sp_sse2(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#else
                // Detect SSE2: 32bit x86 Linux or Windows
                scrypt_1024_1_1_256_sp(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
#else
                // Generic scrypt
                scrypt_1024_1_1_256_sp_generic(BEGIN(block.nVersion), BEGIN(thash), scratchpad);
#endif
                if (thash <= hashTarget)
                    break;
                if ((block.nNonce & 0xFFF) == 0)
                {
                    printf("nonce %08X: hash = %s (target = %s)\n", block.nNonce, thash.ToString().c_str(), hashTarget.ToString().c_str());
                }
                ++block.nNonce;
                if (block.nNonce == 0)
                {
                    printf("NONCE WRAPPED, incrementing time\n");
                    ++block.nTime;
                }
            }
            printf("block.nTime = %u \n", block.nTime);
            printf("block.nNonce = %u \n", block.nNonce);
            printf("block.GetHash = %s\n", block.GetHash().ToString().c_str());
            printf("run");
        }



1HfpFYxBUpQ941mKd4DEjsyA22HN4Kerzu
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!