Skip to content

Commit

Permalink
Merge pull request #36 from DeFiCh/feature/message_start_string
Browse files Browse the repository at this point in the history
Changed magic numbers
  • Loading branch information
monstrobishi authored Sep 17, 2020
2 parents 422538e + 8ca013f commit 594c0ec
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/chainparams.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ class CMainParams : public CChainParams {
* The characters are rarely used upper ASCII, not valid as UTF-8, and produce
* a large 32-bit integer with any alignment.
*/
pchMessageStart[0] = 0xf9;
pchMessageStart[1] = 0xbe;
pchMessageStart[2] = 0xb4;
pchMessageStart[3] = 0xd9;
pchMessageStart[0] = 0xe2;
pchMessageStart[1] = 0xaa;
pchMessageStart[2] = 0xc1;
pchMessageStart[3] = 0xe1;
nDefaultPort = 8555;
nPruneAfterHeight = 100000;
m_assumed_blockchain_size = 240;
Expand Down Expand Up @@ -307,10 +307,10 @@ class CTestNetParams : public CChainParams {
consensus.spv.subsidyIncreaseValue = 5 * COIN;
consensus.spv.minConfirmations = 1;

pchMessageStart[0] = 0x0b;
pchMessageStart[0] = 0x0a;
pchMessageStart[1] = 0x11;
pchMessageStart[2] = 0x09;
pchMessageStart[3] = 0x07;
pchMessageStart[3] = 0x0c;
nDefaultPort = 18555;
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 30;
Expand Down Expand Up @@ -429,10 +429,10 @@ class CDevNetParams : public CChainParams {
consensus.spv.subsidyIncreaseValue = 5 * COIN;
consensus.spv.minConfirmations = 1;

pchMessageStart[0] = 0x0b;
pchMessageStart[0] = 0x0a;
pchMessageStart[1] = 0x11;
pchMessageStart[2] = 0x09;
pchMessageStart[3] = 0x07;
pchMessageStart[3] = 0x0c;
nDefaultPort = 20555; /// @note devnet matter
nPruneAfterHeight = 1000;
m_assumed_blockchain_size = 30;
Expand Down

0 comments on commit 594c0ec

Please sign in to comment.