Skip to content

Commit

Permalink
Merge pull request #45 from CloakProject/cloak.reboot
Browse files Browse the repository at this point in the history
checking the important bits, pun totally int ended!
  • Loading branch information
CloakProjectDev committed Nov 8, 2019
2 parents e4eb234 + 6f3b7b6 commit 5e18c09
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,18 @@ class CMainParams : public CChainParams {
vSeeds.emplace_back("173.212.243.180");
vSeeds.emplace_back("213.136.75.147");

/*
PUBKEY_ADDRESS = 27, // CloakCoin: address begin with 'C'
SCRIPT_ADDRESS = 85,
PUBKEY_ADDRESS_TEST = 111,
SCRIPT_ADDRESS_TEST = 196,
*/

base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,27);
// 0x1B... encodes as 'B' or 'C' Cloak public address start
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,27);
// 0x55..
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,85);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 176); // TODO: check if value should be changed
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; // TODO: check if value should be changed
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; // TODO: check if value should be changed
// 128 + PUBKEY_ADDRESS (0x9B... encodes as '6' Cloak private key start)
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 155);
// BIP-32 pubkeys start with 'xpub' (Bitcoin defaults); HD extended public key
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
// BIP-32 prvkeys start with 'xprv' (Bitcoin defaults); HD extended private key
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};

bech32_hrp = "cc";
bech32_hrp = "cc"; // human readable part; placeholder; not using SegWit so not really important

vFixedSeeds = std::vector<SeedSpec6>(pnSeed6_main, pnSeed6_main + ARRAYLEN(pnSeed6_main));

Expand Down Expand Up @@ -224,7 +222,9 @@ class CMainParams : public CChainParams {
}
};

// todo: check and set correctly!
// TODO: check and set correctly! Only relevant to estimate verification progress...
/** Guess verification progress (as a fraction between 0.0=genesis and 1.0=current tip).
// double GuessVerificationProgress(const ChainTxData& data, const CBlockIndex* pindex) */
chainTxData = ChainTxData{
// Data from rpc: getchaintxstats 4096 0000000000000000002e63058c023a9a1de233554f28c7b21380b6c9003f36a8
/* nTime */ 1532884444,
Expand Down

0 comments on commit 5e18c09

Please sign in to comment.