bitcoin/bitcoin — pull request #5243 by TheBlueMatt (2014-11-08 07:28:19+00:00)
Title: Sleep-wait on genesis block during init with -reindex

This is an alternative to #5078...instead of throwing when chainActive.Tip() is missing (breaking what has otherwise traditionally been a global assumption) we just wait until at least genesis has been imported (its always first).