Skip to content

Commit

Permalink
New unique magic bits, version update, IRC change
Browse files Browse the repository at this point in the history
  • Loading branch information
AMCcoin authored and AMCcoin committed Jun 4, 2013
1 parent c7daea3 commit a3505d4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/irc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ void ThreadIRCSeed2(void* parg)
// randomly join #americancoin00-#americancoin99
int channel_number = GetRandInt(100);
channel_number = 0; // Americancoin: for now, just use one channel
Send(hSocket, strprintf("JOIN #americancoin%02d\r", channel_number).c_str());
Send(hSocket, strprintf("WHO #americancoin%02d\r", channel_number).c_str());
Send(hSocket, strprintf("JOIN #americancoinCOM%02d\r", channel_number).c_str());
Send(hSocket, strprintf("WHO #americancoinCOM%02d\r", channel_number).c_str());
}

int64 nStart = GetTime();
Expand Down
11 changes: 6 additions & 5 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,10 +1983,10 @@ bool LoadBlockIndex(bool fAllowNew)
{
if (fTestNet)
{
pchMessageStart[0] = 0xfc;
pchMessageStart[1] = 0xc1;
pchMessageStart[2] = 0xb7;
pchMessageStart[3] = 0xdc;
pchMessageStart[0] = 'a';
pchMessageStart[1] = 'm';
pchMessageStart[2] = 'c';
pchMessageStart[3] = '-';
hashGenesisBlock = uint256("0x495c6b557e2d3e405e0ebfb6127fd8373a63e159bc3c561bfb1e3daf077448c8");
}

Expand Down Expand Up @@ -2401,7 +2401,8 @@ bool static AlreadyHave(CTxDB& txdb, 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 }; // Americancoin: increase each by adding 2 to bitcoin's value.
//unsigned char pchMessageStart[4] = { 0xfb, 0xc0, 0xb6, 0xdb }; // Americancoin: increase each by adding 2 to bitcoin's value.
unsigned char pchMessageStart[4] = { 'A', 'M', 'C', ':' }; // Americancoin: increase each by adding 2 to bitcoin's value.


bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 6
#define CLIENT_VERSION_REVISION 4
#define CLIENT_VERSION_BUILD 0
#define CLIENT_VERSION_BUILD 1

static const int CLIENT_VERSION =
1000000 * CLIENT_VERSION_MAJOR
Expand Down

0 comments on commit a3505d4

Please sign in to comment.