|
August 26, 2016, 01:04:51 AM |
|
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); } }
|