Skip to content

Commit 9cc8ff6

Browse files
authored
Merge pull request #1295 from psgreco/elements-22.x-liquid-wallet-descr
[22.x] Remove constraint on liquidv1 pegout bitcoin descriptor
2 parents 0e1e4c5 + 1547365 commit 9cc8ff6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5539,18 +5539,11 @@ static RPCHelpMan initpegoutwallet()
55395539
}
55405540

55415541
// Three acceptable descriptors:
5542-
bool is_liquid = Params().NetworkIDString() == "liquidv1";
55435542
if (bitcoin_desc.substr(0, 8) == "sh(wpkh("
55445543
&& bitcoin_desc.substr(bitcoin_desc.size()-2, 2) == "))") {
5545-
if(is_liquid) {
5546-
throw JSONRPCError(RPC_INVALID_PARAMETER, "bitcoin_descriptor is not supported by Liquid; try pkh(<xpub>) or <xpub>.");
5547-
}
55485544
xpub_str = bitcoin_desc.substr(8, bitcoin_desc.size()-2);
55495545
} else if (bitcoin_desc.substr(0, 5) == "wpkh("
55505546
&& bitcoin_desc.substr(bitcoin_desc.size()-1, 1) == ")") {
5551-
if(is_liquid) {
5552-
throw JSONRPCError(RPC_INVALID_PARAMETER, "bitcoin_descriptor is not supported by Liquid; try pkh(<xpub>) or <xpub>.");
5553-
}
55545547
xpub_str = bitcoin_desc.substr(5, bitcoin_desc.size()-1);
55555548
} else if (bitcoin_desc.substr(0, 4) == "pkh("
55565549
&& bitcoin_desc.substr(bitcoin_desc.size()-1, 1) == ")") {

0 commit comments

Comments
 (0)