@@ -143,17 +143,19 @@ def run_test(self):
143
143
# replaceable arg
144
144
block_height = self .nodes [0 ].getblockcount ()
145
145
unspent = self .nodes [0 ].listunspent ()[0 ]
146
- psbtx_info = self .nodes [0 ].walletcreatefundedpsbt ([{"txid" :unspent ["txid" ], "vout" :unspent ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height + 2 , {"replaceable" :True })
146
+ psbtx_info = self .nodes [0 ].walletcreatefundedpsbt ([{"txid" :unspent ["txid" ], "vout" :unspent ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height + 2 , {"replaceable" :True }, False )
147
147
decoded_psbt = self .nodes [0 ].decodepsbt (psbtx_info ["psbt" ])
148
- for tx_in in decoded_psbt ["tx" ]["vin" ]:
148
+ for tx_in , psbt_in in zip ( decoded_psbt ["tx" ]["vin" ], decoded_psbt [ "inputs" ]) :
149
149
assert_equal (tx_in ["sequence" ], MAX_BIP125_RBF_SEQUENCE )
150
+ assert "bip32_derivs" not in psbt_in
150
151
assert_equal (decoded_psbt ["tx" ]["locktime" ], block_height + 2 )
151
152
152
153
# Same construction with only locktime set
153
- psbtx_info = self .nodes [0 ].walletcreatefundedpsbt ([{"txid" :unspent ["txid" ], "vout" :unspent ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height )
154
+ psbtx_info = self .nodes [0 ].walletcreatefundedpsbt ([{"txid" :unspent ["txid" ], "vout" :unspent ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height , {}, True )
154
155
decoded_psbt = self .nodes [0 ].decodepsbt (psbtx_info ["psbt" ])
155
- for tx_in in decoded_psbt ["tx" ]["vin" ]:
156
+ for tx_in , psbt_in in zip ( decoded_psbt ["tx" ]["vin" ], decoded_psbt [ "inputs" ]) :
156
157
assert tx_in ["sequence" ] > MAX_BIP125_RBF_SEQUENCE
158
+ assert "bip32_derivs" in psbt_in
157
159
assert_equal (decoded_psbt ["tx" ]["locktime" ], block_height )
158
160
159
161
# Same construction without optional arguments
0 commit comments