|
|
@ -50,6 +50,9 @@ static CBlock CreateGenesisBlock(const char* pszTimestamp, const CScript& genesi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward) |
|
|
|
static CBlock CreateGenesisBlock(uint32_t nTime, uint32_t nNonce, uint32_t nBits, int32_t nVersion, const CAmount& genesisReward) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
// JWU TODO:
|
|
|
|
|
|
|
|
// 1. Change timestamp
|
|
|
|
|
|
|
|
// 2. Fix coinbase script using segwit.
|
|
|
|
const char* pszTimestamp = "NY Times 05/Oct/2011 Steve Jobs, Apple’s Visionary, Dies at 56"; |
|
|
|
const char* pszTimestamp = "NY Times 05/Oct/2011 Steve Jobs, Apple’s Visionary, Dies at 56"; |
|
|
|
const CScript genesisOutputScript = CScript() << ParseHex("049451c9ac3be691a4fa375ea69537a46ef374c1f454dbc7c2c6fe27b280f2b979991aadb29358591a1f72c326b537d7fd03e14d4978a1b57486d9e6d2c3645717") << OP_CHECKSIG; |
|
|
|
const CScript genesisOutputScript = CScript() << ParseHex("049451c9ac3be691a4fa375ea69537a46ef374c1f454dbc7c2c6fe27b280f2b979991aadb29358591a1f72c326b537d7fd03e14d4978a1b57486d9e6d2c3645717") << OP_CHECKSIG; |
|
|
|
return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward); |
|
|
|
return CreateGenesisBlock(pszTimestamp, genesisOutputScript, nTime, nNonce, nBits, nVersion, genesisReward); |
|
|
@ -159,6 +162,7 @@ public: |
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,139); // M
|
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,139); // M
|
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; |
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x88, 0xB2, 0x1E}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x88, 0xAD, 0xE4}; |
|
|
|
|
|
|
|
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N
|
|
|
|
|
|
|
|
|
|
|
|
bech32_hrp = "kva"; |
|
|
|
bech32_hrp = "kva"; |
|
|
|
|
|
|
|
|
|
|
@ -285,6 +289,7 @@ public: |
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); |
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); |
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; |
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; |
|
|
|
|
|
|
|
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N
|
|
|
|
|
|
|
|
|
|
|
|
bech32_hrp = "tkva"; |
|
|
|
bech32_hrp = "tkva"; |
|
|
|
|
|
|
|
|
|
|
@ -402,6 +407,7 @@ public: |
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); |
|
|
|
base58Prefixes[SECRET_KEY] = std::vector<unsigned char>(1,239); |
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; |
|
|
|
base58Prefixes[EXT_PUBLIC_KEY] = {0x04, 0x35, 0x87, 0xCF}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; |
|
|
|
base58Prefixes[EXT_SECRET_KEY] = {0x04, 0x35, 0x83, 0x94}; |
|
|
|
|
|
|
|
base58Prefixes[KEVA_NAMESPACE] = std::vector<unsigned char>(1,53); // N
|
|
|
|
|
|
|
|
|
|
|
|
bech32_hrp = "rkva"; |
|
|
|
bech32_hrp = "rkva"; |
|
|
|
} |
|
|
|
} |
|
|
|