bitcoin/bitcoin — pull request #5106 by luke-jr (2014-10-20 04:19:18+00:00)
Title: Bugfix: submitblock: Use a temporary CValidationState to determine accurately the outcome of ProcessBlock

Fixes #5083 (based on #5105)