bitcoin/bitcoin — pull request #4496 by sipa (2014-07-09 15:44:42+00:00)
Title: Bugfix: only remove actualy failed blocks from setBlockIndexValid

Fix an unexposed bug in dealing with invalid blocks: only chains with actually invalid blocks should be removed from the set of potentially new tips.

Also, in case an error is found, the failed block itself must be removed from that set.

This would be exposed by #44768.