Bitcoin Forum
June 17, 2024, 05:05:21 PM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: /src/checkpoints.cpp:376 HELP  (Read 662 times)
1evgenius (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
August 26, 2016, 01:04:51 AM
 #1

INSTRUCTIONS
 /src/checkpoints.cpp:376 - Generate a new keypair using 'makekeypair' in Variance. Put the Public Key here, save the Private Key for your automated checkpoint server


WHAT DO I DO IN CODE NO POINT 376.PODSKAZHITE Do I need a key or you're done, explains something to UNDERSTAND I M NO SPECIALIST. ASAP THANK YOU FOR YOUR UNDERSTANDING.
  

Here is the code



   static MapCheckpoints mapCheckpoints =
            boost :: assign :: map_list_of
            (0, uint256 ( "0x2a8e100939494904af825b488596ddd536b3a96226ad02e0f7ab7ae472b27a8e"))
            (1, uint256 ( "0xf54c0f8ed0b8ba85f99525d37e7cc9a5107bd752a54d8778d6cfb4f36cb51131"))
            (2, uint256 ( "0x2e739d971f02265b83895c04854fcb4deb48806126097b5feaf92ffd4d2341d6"))
            (123, uint256 ( "0x76b2378c0cd904584d9c226d9ef7a4a91a4ed701f2da36e4bd486d0c7a27b1fd"))
            (5810, uint256 ( "0x71517f8219449fd56ade24c888bbfd7d228c898d2aac8a078fd655be4182e813"))
            (6350, uint256 ( "0x76afd9f23e61b513e0c5224754943a1b1a6ddbed73586416363095808ac12eb1"))
            ;


    bool CheckBlock (int nHeight, const uint256 & hash)
    {
        if (fTestNet) return true; // Testnet has no checkpoints

        MapCheckpoints :: const_iterator i = mapCheckpoints.find (nHeight);
        if (i == mapCheckpoints.end ()) return true;
        return hash == i-> second;
    }

    int GetTotalBlocksEstimate ()
    {
        if (fTestNet) return 0;
        return mapCheckpoints.rbegin () -> first;
    }

    CBlockIndex * GetLastCheckpoint (const std :: map <uint256, CBlockIndex *> & mapBlockIndex)
    {
        if (fTestNet) return NULL;

        BOOST_REVERSE_FOREACH (const MapCheckpoints :: value_type & i, mapCheckpoints)
        {
            const uint256 & hash = i.second;
            std :: map <uint256, CBlockIndex *> :: const_iterator t = mapBlockIndex.find (hash);
            if (t! = mapBlockIndex.end ())
                return t-> second;
        }
        return NULL;
    }

    uint256 GetLatestHardenedCheckpoint ()
    {
        const MapCheckpoints & checkpoints = mapCheckpoints;
        return (checkpoints.rbegin () -> second);
    }
}
achow101
Staff
Legendary
*
Offline Offline

Activity: 3430
Merit: 6705


Just writing some code


View Profile WWW
August 26, 2016, 01:12:34 AM
 #2

You're doing something with altcoins (so wrong section) that involves keys and a checkpoint server, so completely not bitcoin related.

Secondly, you have absolutely no idea what you are doing, so please stop. Take the time to actually study what you are doing and understand it before coming and asking for help from people who probably won't give it to you (you are asking about an altcoin after all, and there are significantly less people here who care about altcoins and their development than people who care about Bitcoin and actually understand it).

gmaxwell
Staff
Legendary
*
Offline Offline

Activity: 4200
Merit: 8440



View Profile WWW
August 26, 2016, 01:17:35 AM
 #3

Centralized fake cryptocurrency is centralized fake cryptocurrency... and belongs in the altcoin section.
1evgenius (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
August 26, 2016, 01:31:49 AM
 #4

sorry wrong placed in bitkoin.centralized altcoin you sure?
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
August 26, 2016, 02:36:16 AM
 #5

I wrote that guide

Search the file for pubkey if the line number is incorrect

1evgenius (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
August 26, 2016, 03:14:39 AM
 #6

HELLO! I am very glad to find you, surprised by the spontaneous, THANKS. YOUR ENTRY to do, but I took another COIN, want to create a coin with PREMINE IN YOUR INSTRUCTIONS, took another COIN ready. WRITE TO COIN IT POSSIBLE TO CREATE SO, I took a different fork LITECOIN.
iGotSpots
Legendary
*
Offline Offline

Activity: 2548
Merit: 1054


CPU Web Mining 🕸️ on webmining.io


View Profile WWW
August 27, 2016, 06:58:14 PM
 #7

No worries. The process is the same regardless of which coin you start with. Things just might be named differently and in different spots, but the basic diction is the same

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!