bitcoin/bitcoin — pull request #5103 by luke-jr (2014-10-20 01:48:14+00:00)
Title: CreateNewBlock and miner_tests: Also check generated template is valid by other validity factors

Originally, ConnectBlock did all the validity tests over. Now, it doesn't, so to test a block template we need to call the others manually.