fix incorrect script type returned for p2sh multisig

This commit is contained in:
Craig Raw 2025-01-21 08:50:16 +02:00
parent 7b9affb3de
commit 89a6b1296e

View file

@ -884,6 +884,8 @@ public class PSBTInput {
return p2sh ? P2SH_P2WPKH : P2WPKH;
} else if(P2WSH.isScriptType(signingScript)) {
return p2sh ? P2SH_P2WSH : P2WSH;
} else if(MULTISIG.isScriptType(signingScript)) {
return p2sh ? P2SH : MULTISIG;
}
return ScriptType.getType(signingScript);