File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -361,18 +361,11 @@ RPCHelpMan initpegoutwallet()
361
361
}
362
362
363
363
// Three acceptable descriptors:
364
- bool is_liquid = Params ().NetworkIDString () == " liquidv1" ;
365
364
if (bitcoin_desc.substr (0 , 8 ) == " sh(wpkh("
366
365
&& bitcoin_desc.substr (bitcoin_desc.size ()-2 , 2 ) == " ))" ) {
367
- if (is_liquid) {
368
- throw JSONRPCError (RPC_INVALID_PARAMETER, " bitcoin_descriptor is not supported by Liquid; try pkh(<xpub>) or <xpub>." );
369
- }
370
366
xpub_str = bitcoin_desc.substr (8 , bitcoin_desc.size ()-2 );
371
367
} else if (bitcoin_desc.substr (0 , 5 ) == " wpkh("
372
368
&& bitcoin_desc.substr (bitcoin_desc.size ()-1 , 1 ) == " )" ) {
373
- if (is_liquid) {
374
- throw JSONRPCError (RPC_INVALID_PARAMETER, " bitcoin_descriptor is not supported by Liquid; try pkh(<xpub>) or <xpub>." );
375
- }
376
369
xpub_str = bitcoin_desc.substr (5 , bitcoin_desc.size ()-1 );
377
370
} else if (bitcoin_desc.substr (0 , 4 ) == " pkh("
378
371
&& bitcoin_desc.substr (bitcoin_desc.size ()-1 , 1 ) == " )" ) {
You can’t perform that action at this time.
0 commit comments