bitcoin/bitcoin — pull request #4471 by sipa (2014-07-06 12:53:08+00:00)
Title: Bugfix: send rejects and apply DoS scoring for errors in direct block validation.

#3370 introduced asynchronous processing for blocks, where reject messages and DoS scoring could be applied outside of ProcessBlock, because block validation may happen later.

However, some types of errors are still detected immediately (in particular, CheckBlock violations), which need acting after ProcessBlock returns.