haskoin/haskoin — pull request #71 by lornap (2014-07-07 01:37:06+00:00)
Title: Fix of PayToSH logic in Evaluator.hs

A couple of bug fixes in the p2sh logic.
- Added more checking on whether the redeemScript should be evaluated
(no empty stack, scriptPubKey had success)
- Changed the starting program state to be what is required ( need the scriptSig
ending stack minus the redeemScript, and hashOps needs to be the redeemScript)

Admittedly, this fix is a bit of a kludge. Some clean-up or refactoring of the area is probably a good idea, but I wanted to get the fix in.