Skip to content

Commit

Permalink
check prefix and update
Browse files Browse the repository at this point in the history
  • Loading branch information
akyo8 committed Mar 12, 2021
1 parent abbfc4d commit c70bfc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
18 changes: 6 additions & 12 deletions src/chainparams.cpp
Expand Up @@ -182,18 +182,12 @@ class CMainParams : public CChainParams {
vSeeds.emplace_back("213.136.75.147");
bech32_hrp = "bc";
/*
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);
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
base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,27);
base58Prefixes[SCRIPT_ADDRESS] = std::vector<unsigned char>(1,85);
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1, 155);
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E};
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4};
bech32_hrp = "cc";
Expand Down
1 change: 1 addition & 0 deletions src/validationinterface.cpp
Expand Up @@ -158,6 +158,7 @@ void UnregisterAllValidationInterfaces()
}
g_signals.m_internals->Clear();
g_signals.m_internals->CreateCoinStake.disconnect_all_slots();

}

void CMainSignals::CreateCoinStake(unsigned int nBits, int64_t nSearchInterval, CTransactionRef txNew, bool& result)
Expand Down

0 comments on commit c70bfc3

Please sign in to comment.