diff options
| author | Andrew Chow <[email protected]> | 2020-03-31 13:36:34 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-03-31 18:41:52 -0400 |
| commit | cd3b1569d9ad8e24d3a222aff74e0c254baadf79 (patch) | |
| tree | 6571f3e20d4c9055f1f60f70ae72012a50978aa0 /src/httpserver.cpp | |
| parent | Merge #18481: test: add BIP37 'filterclear' test to p2p_filter.py (diff) | |
| download | discoin-cd3b1569d9ad8e24d3a222aff74e0c254baadf79.tar.xz discoin-cd3b1569d9ad8e24d3a222aff74e0c254baadf79.zip | |
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.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions