I recall some of these transactions and researched them.
P2SH was introduced as a soft-fork, meaning old nodes technically didn't have to upgrade - the soft fork could be carried out by a hashrate majority of miners.
OP_HASH160 [20 byte hash] OP_EQUAL
This is the P2SH scriptPubKey. Before the soft-fork, it meant that anyone that knew the value that hashed to [20 byte hash] could spend the coins.
A quick note on hashrate-majority enforced soft-forks. These are normally invisible to clients unaware of them. The reason is, these soft-forks usually only forbid certain things from happening, rather than allow something new and unexpected to happen.
P2SH is one of these types, because it added further rules to the above snippet of Bitcoin Script. The rule is, if the value hashes to [20 byte hash], then assume it is a string of bitcoin script and verify it. All this does is prevent some spend attempts from entering the blockchain - they might fail P2SH validation.
From an old version's point of view, if something you allow never happens again, there is no rule violation.
So, why was this block 'mined' 94 times? Well, partially because Blockchain.info uses confusing terminology. They received 94 blocks including this transaction. It's just a pity they were all orphaned!
This is an unfortunate case where the hashrate-majority soft-fork actually caused problems for someone. That someone was in the minority running v0.6, and kept running the older software version (or they forgot to upgrade). Their software a transaction with a valid pre-image for [20 byte hash], and accepted it into the mempool. It then tried to mine it.
The majority, however, had just accepted a rule where such transactions are exposed to additional validation, and deemed this transaction invalid, so they refused to build on top of these blocks.
Regarding P2SH addresses, they are very useful these days. You can request someone to fund a complicated script (like multisig, or a Lightning channel) using a fixed-size address!
1Oh! Amazing. Another question: How much is P2SH supported today? What all can I write to the encoded script? I found out that miners won't accept any arbitrary script, is the same thing true about the encoded scripts? – Karel Bílek – 2013-04-13T15:20:38.723
1That's a good question. While you can specify a hash of an arbitrary script to be a claiming condition we have to make sure that the script is valid, otherwise you won't be able to spend those coins ever again. – cdecker – 2013-04-13T15:40:06.417
@cdecker could you elaborate on that second paragraph of yours that begins "P2SH has the advantage that..."? Is the client the one sending the bitcoins, or the redeemer? Can you give an example of what type of script they wouldn't have to build, and then also give an example of the script that verifies the first script? – almel – 2014-07-22T22:58:19.473
Let's say the sender has a really old wallet, that does not support multisig addresses. Using P2SH the receiver creates the hash of a script that does multisig, uses it to create a P2SH address and sends it to the sender. The sender now has an address, which is a valid P2SH address, and can send funds to it, even though it does not know anything about multisig addresses. For an example I'd like to point you to the examples in BIP 16.
– cdecker – 2014-07-23T10:47:15.517You said a "client does not necessarily have to know how to build such a script". If I use a beta wallet that uses P2SH addresses, and they make a mistake where the script is miscalculated and can't spend the funds... or is it more foolproof than that and I'm needlessly paranoid? – Brain2000 – 2017-06-10T03:01:56.930
Well that comes down to how much you trust the wallet you as a recipient are using :-) It's similar to your P2PKH wallet having a mistake in the hash computation, or it using the wrong pubkey, or it deriving the pubkey wrongly from the privkey. That being said, wallets are thoroughly tested before being released, so I wouldn't worry too much if you use a well tested wallet implementation – cdecker – 2017-06-10T11:41:17.500
@cdecker hi, I am also programmer, I have talk to you about making crypto currency. What is your contact? or send me email [ wsxdrfv (at) hanmail (dot) net ] Thanks. – creator – 2018-02-10T13:34:56.273