From 89a6b1296e75508eae498f0199928cff0b8a660c Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 21 Jan 2025 08:50:16 +0200 Subject: [PATCH] fix incorrect script type returned for p2sh multisig --- src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java index d6dc72e..5a3b5c8 100644 --- a/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java +++ b/src/main/java/com/sparrowwallet/drongo/psbt/PSBTInput.java @@ -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);