Permalink
Browse files

Change char pchMessageStart

Change char pchMessageStart and ParseHex
  • Loading branch information...
HowToCloneAnAltcoin
HowToCloneAnAltcoin committed Nov 6, 2014
1 parent 9a5321b commit 011b9a8e713821d8010a827f7aeacf09c772a267
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/main.cpp
View
@@ -2742,9 +2742,9 @@ bool LoadBlockIndex()
{
if (fTestNet)
{
pchMessageStart[0] = 0xfc;
pchMessageStart[1] = 0xc1;
pchMessageStart[2] = 0xb7;
pchMessageStart[0] = 0xd1;
pchMessageStart[1] = 0xb2;
pchMessageStart[2] = 0xa4;
pchMessageStart[3] = 0xdc;
hashGenesisBlock = uint256("0xf5ae71e26c74beacc88382716aced69cddf3dffff24f384e1808905e0188f68f");
}
@@ -2785,7 +2785,7 @@ bool InitBlockIndex() {
txNew.vout.resize(1);
txNew.vin[0].scriptSig = CScript() << 486604799 << CBigNum(4) << vector<unsigned char>((const unsigned char*)pszTimestamp, (const unsigned char*)pszTimestamp + strlen(pszTimestamp));
txNew.vout[0].nValue = 50 * COIN;
txNew.vout[0].scriptPubKey = CScript() << ParseHex("040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
txNew.vout[0].scriptPubKey = CScript() << ParseHex("043384710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9") << OP_CHECKSIG;
CBlock block;
block.vtx.push_back(txNew);
block.hashPrevBlock = 0;
@@ -3079,7 +3079,7 @@ bool static AlreadyHave(const CInv& inv)
// The message start string is designed to be unlikely to occur in normal data.
// The characters are rarely used upper ASCII, not valid as UTF-8, and produce
// a large 4-byte int at any alignment.
unsigned char pchMessageStart[4] = { 0xfb, 0xc0, 0xb6, 0xdb }; // Clonecoin: increase each by adding 2 to bitcoin's value.
unsigned char pchMessageStart[4] = { 0xc3, 0xd2, 0xd1, 0xbd }; // Clonecoin: increase each by adding 2 to bitcoin's value.
void static ProcessGetData(CNode* pfrom)

12 comments on commit 011b9a8

@msohaib47

This comment has been minimized.

Show comment
Hide comment
@msohaib47

msohaib47 Dec 21, 2017

clone from github does not include main.cpp and main.h files. Am I missing something?

msohaib47 replied Dec 21, 2017

clone from github does not include main.cpp and main.h files. Am I missing something?

@ohiTuna

This comment has been minimized.

Show comment
Hide comment
@ohiTuna

ohiTuna Dec 23, 2017

main.h and cpp were removed since like v0.10 and are spread across files in /src and /src/consensus
use FnR to find variables/consts you are looking for or downgrade to older version with main.cpp/.h

ohiTuna replied Dec 23, 2017

main.h and cpp were removed since like v0.10 and are spread across files in /src and /src/consensus
use FnR to find variables/consts you are looking for or downgrade to older version with main.cpp/.h

@albertbanez

This comment has been minimized.

Show comment
Hide comment
@albertbanez

albertbanez Jan 26, 2018

Hi ohiTuna,
I successfully deployed Clonecoin but I have an issue with Transaction fees.
When 2 users are mining simultaneously, both of them will get the mined transaction fees?
Is this a bug or this is normal?
Are you also available for pay consulting?

albertbanez replied Jan 26, 2018

Hi ohiTuna,
I successfully deployed Clonecoin but I have an issue with Transaction fees.
When 2 users are mining simultaneously, both of them will get the mined transaction fees?
Is this a bug or this is normal?
Are you also available for pay consulting?

@parin13

This comment has been minimized.

Show comment
Hide comment
@parin13

parin13 Feb 8, 2018

@msohaib47 you need to

git checkout 9cffb23

that will take you to LTC v 0.8

parin13 replied Feb 8, 2018

@msohaib47 you need to

git checkout 9cffb23

that will take you to LTC v 0.8

@OluAgunloye

This comment has been minimized.

Show comment
Hide comment
@OluAgunloye

OluAgunloye Feb 10, 2018

wow, people are still following this, eh? Should I do an updated one for the current master source of Litecoin and a Segwit walkthrough?

OluAgunloye replied Feb 10, 2018

wow, people are still following this, eh? Should I do an updated one for the current master source of Litecoin and a Segwit walkthrough?

@AngelTs

This comment has been minimized.

Show comment
Hide comment
@AngelTs

AngelTs Feb 11, 2018

@OluAgunloye Can you make a port for MSVC2012+ of present litecoin?

AngelTs replied Feb 11, 2018

@OluAgunloye Can you make a port for MSVC2012+ of present litecoin?

@OluAgunloye

This comment has been minimized.

Show comment
Hide comment
@OluAgunloye

OluAgunloye Feb 11, 2018

OluAgunloye replied Feb 11, 2018

@shopglobal

This comment has been minimized.

Show comment
Hide comment
@shopglobal

shopglobal Mar 4, 2018

@OluAgunloye please do sensai!

shopglobal replied Mar 4, 2018

@OluAgunloye please do sensai!

@OluAgunloye

This comment has been minimized.

Show comment
Hide comment
@OluAgunloye

OluAgunloye Mar 4, 2018

OluAgunloye replied Mar 4, 2018

@blockchaintrainer

This comment has been minimized.

Show comment
Hide comment
@blockchaintrainer

blockchaintrainer Apr 2, 2018

This file is chainparams.cpp in the current code on Github

blockchaintrainer replied Apr 2, 2018

This file is chainparams.cpp in the current code on Github

@shopglobal

This comment has been minimized.

Show comment
Hide comment
@shopglobal

shopglobal replied Apr 2, 2018

@OluAgunloye looking forward

@OluAgunloye

This comment has been minimized.

Show comment
Hide comment
@OluAgunloye

OluAgunloye Apr 2, 2018

OluAgunloye replied Apr 2, 2018

Please sign in to comment.