@ -454,7 +454,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
self . generate ( self . nodes [ 0 ] , 6 )
self . generate ( self . nodes [ 0 ] , 6 )
self . sync_all ( )
self . sync_all ( )
send_txid = wmulti_priv . sendtoaddress ( w0 . getnewaddress ( ) , 8 )
send_txid = wmulti_priv . sendtoaddress ( w0 . getnewaddress ( ) , 8 )
decoded = wmulti_priv . decoderawtransaction( wmulti_priv . gettransaction ( send_txid ) [ ' hex ' ] )
decoded = wmulti_priv . gettransaction( txid = send_txid , verbose = True ) [ ' decoded ' ]
assert_equal ( len ( decoded [ ' vin ' ] [ 0 ] [ ' txinwitness ' ] ) , 4 )
assert_equal ( len ( decoded [ ' vin ' ] [ 0 ] [ ' txinwitness ' ] ) , 4 )
self . generate ( self . nodes [ 0 ] , 6 )
self . generate ( self . nodes [ 0 ] , 6 )
self . sync_all ( )
self . sync_all ( )
@ -586,7 +586,7 @@ class ImportDescriptorsTest(BitcoinTestFramework):
self . sync_all ( )
self . sync_all ( )
# It is standard and would relay.
# It is standard and would relay.
txid = wmulti_priv_big . sendtoaddress ( w0 . getnewaddress ( ) , 9.999 )
txid = wmulti_priv_big . sendtoaddress ( w0 . getnewaddress ( ) , 9.999 )
decoded = wmulti_priv_big . decoderawtransaction( wmulti_priv_big . gettransaction ( txid ) [ ' hex ' ] )
decoded = wmulti_priv_big . gettransaction( txid = txid , verbose = True ) [ ' decoded ' ]
# 20 sigs + dummy + witness script
# 20 sigs + dummy + witness script
assert_equal ( len ( decoded [ ' vin ' ] [ 0 ] [ ' txinwitness ' ] ) , 22 )
assert_equal ( len ( decoded [ ' vin ' ] [ 0 ] [ ' txinwitness ' ] ) , 22 )
@ -620,12 +620,8 @@ class ImportDescriptorsTest(BitcoinTestFramework):
self . generate ( self . nodes [ 0 ] , 6 )
self . generate ( self . nodes [ 0 ] , 6 )
self . sync_all ( )
self . sync_all ( )
# It is standard and would relay.
# It is standard and would relay.
txid = multi_priv_big . sendtoaddress ( w0 . getnewaddress ( ) , 10 , " " , " " ,
txid = multi_priv_big . sendtoaddress ( w0 . getnewaddress ( ) , 10 , " " , " " , True )
True )
decoded = multi_priv_big . gettransaction ( txid = txid , verbose = True ) [ ' decoded ' ]
decoded = multi_priv_big . decoderawtransaction (
multi_priv_big . gettransaction ( txid ) [ ' hex ' ]
)
self . log . info ( " Amending multisig with new private keys " )
self . log . info ( " Amending multisig with new private keys " )
self . nodes [ 1 ] . createwallet ( wallet_name = " wmulti_priv3 " , descriptors = True )
self . nodes [ 1 ] . createwallet ( wallet_name = " wmulti_priv3 " , descriptors = True )