bitcoin/bitcoin — pull request #773 by gavinandresen (2012-01-20 22:20:24+00:00)
Title: Simplify counting of P2SH sigops to match BIP 16

This also removes an un-needed sigops-per-byte check when accepting transactions to the memory pool (un-needed assuming only standard transactions are being accepted). And it only counts P2SH sigops after the switchover date.