Skip to content

Commit

Permalink
If Litecoin has not been launched yet, print out informative error me…
Browse files Browse the repository at this point in the history
…ssage to user.
  • Loading branch information
coblee committed Oct 9, 2011
1 parent 3c130da commit a2e7991
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ bool LoadBlockIndex(bool fAllowNew)
}

block.print();
assert(block.GetHash() == hashGenesisBlock);
if (block.GetHash() != hashGenesisBlock)
assert(!"Litecoin is only available on testnet right now. Please add testnet=1 to your litecoin.conf file.");

// Start new block file
unsigned int nFile;
Expand Down

0 comments on commit a2e7991

Please sign in to comment.