bitcoin/bitcoin — pull request #1764 by luke-jr (2012-08-31 05:29:59+00:00)
Title: Bugfix: Compare deserialized block height in coinbase with expected height

Serializing the expected height and comparing the two rejects blocks using less-than-minimal serialization; for example "\x04\x??\x??\x??\x00". BIP 34 does not require minimal serialization, and using 32-bit serialization is faster and easier.