Andrew Chow cd3b1569d9 Correctly compute redeemScript from witnessScript for signrawtransaction
ParsePrevouts uses GetScriptForWitness on the given witnessScript
to find the corresponding redeemScript. This is incorrect when the
witnessScript is either a P2PK or P2PKH script as it returns the
corresponding P2WPK script instead of turning the witnessScript
into a P2WSH script. Instead this should make the script a
WitnessV0ScriptHash destination and get the script for that.

Test cases are also added.
2020-03-31 18:41:52 -04:00
..
2020-03-27 15:17:35 +00:00
2020-03-18 10:34:53 -07:00
2020-02-09 07:44:29 -08:00
2020-03-27 10:14:08 -04:00
2020-02-10 12:00:10 -08:00
2020-02-10 12:00:10 -08:00
2020-01-31 12:36:13 +00:00
2020-01-31 12:36:13 +00:00
2019-12-23 06:12:10 +07:00
2020-01-16 18:25:11 -08:00
2020-02-28 14:56:49 -08:00
2020-03-27 08:59:06 -04:00
2020-03-15 22:43:39 +00:00
2020-02-10 12:00:10 -08:00