Author

Topic: /src/checkpoints.cpp:376 HELP (Read 680 times)

legendary
Activity: 2548
Merit: 1054
CPU Web Mining 🕸️ on webmining.io
August 27, 2016, 01: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
newbie
Activity: 4
Merit: 0
August 25, 2016, 10:14:39 PM
#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.
legendary
Activity: 2548
Merit: 1054
CPU Web Mining 🕸️ on webmining.io
August 25, 2016, 09:36:16 PM
#5
I wrote that guide

Search the file for pubkey if the line number is incorrect
newbie
Activity: 4
Merit: 0
August 25, 2016, 08:31:49 PM
#4
sorry wrong placed in bitkoin.centralized altcoin you sure?
staff
Activity: 4284
Merit: 8808
August 25, 2016, 08:17:35 PM
#3
Centralized fake cryptocurrency is centralized fake cryptocurrency... and belongs in the altcoin section.
staff
Activity: 3458
Merit: 6793
Just writing some code
August 25, 2016, 08:12:34 PM
#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).
newbie
Activity: 4
Merit: 0
August 25, 2016, 08:04:51 PM
#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 & mapBlockIndex)
    {
        if (fTestNet) return NULL;

        BOOST_REVERSE_FOREACH (const MapCheckpoints :: value_type & i, mapCheckpoints)
        {
            const uint256 & hash = i.second;
            std :: map :: 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);
    }
}
Jump to: