bitcoin/bitcoin — pull request #2642 by sipa (2013-05-12 11:17:15+00:00)
Title: Check for correct genesis

At startup, check that the expected genesis is loaded. This should prevent cases where accidentally a datadir from the wrong network is loaded (testnet vs mainnet, e.g.).

This should at least partially #2547, by giving a clearer and sooner error message.