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 @@ -5539,18 +5539,11 @@ static RPCHelpMan initpegoutwallet()
5539
5539
}
5540
5540
5541
5541
// Three acceptable descriptors:
5542
- bool is_liquid = Params ().NetworkIDString () == " liquidv1" ;
5543
5542
if (bitcoin_desc.substr (0 , 8 ) == " sh(wpkh("
5544
5543
&& 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
- }
5548
5544
xpub_str = bitcoin_desc.substr (8 , bitcoin_desc.size ()-2 );
5549
5545
} else if (bitcoin_desc.substr (0 , 5 ) == " wpkh("
5550
5546
&& 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
- }
5554
5547
xpub_str = bitcoin_desc.substr (5 , bitcoin_desc.size ()-1 );
5555
5548
} else if (bitcoin_desc.substr (0 , 4 ) == " pkh("
5556
5549
&& bitcoin_desc.substr (bitcoin_desc.size ()-1 , 1 ) == " )" ) {
You can’t perform that action at this time.
0 commit comments