bitcoin/bitcoin — pull request #748 by gavinandresen (2012-01-07 00:53:28+00:00)
Title: Pay-to-script-hash (OP_EVAL replacement)

This implements BIP 16, the replacement for pay-to-script hash.
https://en.bitcoin.it/wiki/BIP_0016

Tested mostly on testnet-in-a-box, but I did spend time today generating transactions on the testnet as a final sanity test:

Testnet block 43561 has 3 Pay-to-script-hash transactions and the /P2SH/ string in it's coinbase:
http://blockexplorer.com/testnet/block/000000000182cc0764d6c6b2b43a009fc9dc0cb03e9002249e7e865b7189acf8

The next block has a transaction that spends one of them:
http://blockexplorer.com/testnet/tx/cff697a07fa21780b2553c6e86bf956cb42838b0e9b226da2c6b3cd7754da736

I'll be producing/testing backports for miners running old software in the next few days.