bitcoinj/bitcoinj — pull request #168 by TheBlueMatt (2014-08-11 22:29:12+00:00)
Title: Fix error when using Block.verify() after the Block constructor

...which takes all the elements of the block as paramters.

ie:
Block(NetworkParameters params, long version, Sha256Hash prevBlockHash, Sha256Hash merkleRoot, long time, long difficultyTarget, long nonce, List transactions)
then verify() calls getOptimalEncodingMessageSize() calls getMessageSize(), which throws for blocks.