bitcoin/bitcoin — pull request #2114 by sipa (2012-12-19 00:26:02+00:00)
Title: Make IsCanonicalScript() check the hash type more thoroughly

0 and 128 were previously accepted as standard hash type.

Note that this function is not active in the current verification code.