bitcoin/bitcoin — pull request #2190 by sipa (2013-01-18 23:41:40+00:00)
Title: Bugfix + simplify special case for genesis

The special case for the genesis block (it is not connected in the normal way, resulting in its coinbase being unspendable by definition) was not always enforced. When reconstructing the coins/ directory, it was connected normally. Beside being incorrect, since #2145, this resulted in a segfault at startup.

This generalizes and simplifies the code for dealing with the special case, by moving it to ConnectBlock itself.