@@ -345,31 +345,19 @@ def run_test(self):
345
345
self .log .info ("Nodes with addresstype=legacy never use a P2WPKH change output (unless changetype is set otherwise):" )
346
346
self .test_change_output_type (0 , [to_address_bech32_1 ], 'legacy' )
347
347
348
- if self .options .descriptors :
349
- self .log .info ("Nodes with addresstype=p2sh-segwit match the change output" )
350
- self .test_change_output_type (1 , [to_address_p2sh ], 'p2sh-segwit' )
351
- self .test_change_output_type (1 , [to_address_bech32_1 ], 'bech32' )
352
- self .test_change_output_type (1 , [to_address_p2sh , to_address_bech32_1 ], 'bech32' )
353
- self .test_change_output_type (1 , [to_address_bech32_1 , to_address_bech32_2 ], 'bech32' )
354
- else :
355
- self .log .info ("Nodes with addresstype=p2sh-segwit match the change output" )
356
- self .test_change_output_type (1 , [to_address_p2sh ], 'p2sh-segwit' )
357
- self .test_change_output_type (1 , [to_address_bech32_1 ], 'bech32' )
358
- self .test_change_output_type (1 , [to_address_p2sh , to_address_bech32_1 ], 'bech32' )
359
- self .test_change_output_type (1 , [to_address_bech32_1 , to_address_bech32_2 ], 'bech32' )
348
+ self .log .info ("Nodes with addresstype=p2sh-segwit match the change output" )
349
+ self .test_change_output_type (1 , [to_address_p2sh ], 'p2sh-segwit' )
350
+ self .test_change_output_type (1 , [to_address_bech32_1 ], 'bech32' )
351
+ self .test_change_output_type (1 , [to_address_p2sh , to_address_bech32_1 ], 'bech32' )
352
+ self .test_change_output_type (1 , [to_address_bech32_1 , to_address_bech32_2 ], 'bech32' )
360
353
361
354
self .log .info ("Nodes with change_type=bech32 always use a P2WPKH change output:" )
362
355
self .test_change_output_type (2 , [to_address_bech32_1 ], 'bech32' )
363
356
self .test_change_output_type (2 , [to_address_p2sh ], 'bech32' )
364
357
365
- if self .options .descriptors :
366
- self .log .info ("Nodes with addresstype=bech32 match the change output (unless changetype is set otherwise):" )
367
- self .test_change_output_type (3 , [to_address_bech32_1 ], 'bech32' )
368
- self .test_change_output_type (3 , [to_address_p2sh ], 'p2sh-segwit' )
369
- else :
370
- self .log .info ("Nodes with addresstype=bech32 match the change output (unless changetype is set otherwise):" )
371
- self .test_change_output_type (3 , [to_address_bech32_1 ], 'bech32' )
372
- self .test_change_output_type (3 , [to_address_p2sh ], 'p2sh-segwit' )
358
+ self .log .info ("Nodes with addresstype=bech32 match the change output (unless changetype is set otherwise):" )
359
+ self .test_change_output_type (3 , [to_address_bech32_1 ], 'bech32' )
360
+ self .test_change_output_type (3 , [to_address_p2sh ], 'p2sh-segwit' )
373
361
374
362
self .log .info ('getrawchangeaddress defaults to addresstype if -changetype is not set and argument is absent' )
375
363
self .test_address (3 , self .nodes [3 ].getrawchangeaddress (), multisig = False , typ = 'bech32' )
0 commit comments