Skip to content

Commit

Permalink
Disable main net support, default to testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa authored and TheBlueMatt committed Jun 9, 2015
1 parent 150fb41 commit ed94406
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chainparamsbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class CBaseMainParams : public CBaseChainParams
{
networkID = CBaseChainParams::MAIN;
nRPCPort = 8332;
strDataDir = "alphamain";
}
};
static CBaseMainParams mainParams;
Expand Down Expand Up @@ -102,7 +103,7 @@ void SelectBaseParams(CBaseChainParams::Network network)
CBaseChainParams::Network NetworkIdFromCommandLine()
{
bool fRegTest = GetBoolArg("-regtest", false);
bool fTestNet = GetBoolArg("-testnet", false);
bool fTestNet = GetBoolArg("-testnet", true);

if (fTestNet && fRegTest)
return CBaseChainParams::MAX_NETWORK_TYPES;
Expand Down
4 changes: 4 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,10 @@ bool InitSanityCheck(void)
*/
bool AppInit2(boost::thread_group& threadGroup)
{
if (Params().NetworkIDString() == "main") {
return InitError("Error: Elements Alpha does not support main network.");
}

// ********************************************************* Step 1: setup
#ifdef _MSC_VER
// Turn off Microsoft heap dump noise
Expand Down

0 comments on commit ed94406

Please sign in to comment.