@@ -29,7 +29,7 @@ def set_test_params(self):
29
29
self .num_nodes = 3
30
30
self .extra_args = [
31
31
["-walletrbf=1" ],
32
- [],
32
+ ["-walletrbf=0" ],
33
33
[]
34
34
]
35
35
@@ -215,7 +215,7 @@ def run_test(self):
215
215
psbtx_info = self .nodes [0 ].walletcreatefundedpsbt ([{"txid" :unspent ["txid" ], "vout" :unspent ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height + 2 , {"replaceable" : False }, False )
216
216
decoded_psbt = self .nodes [0 ].decodepsbt (psbtx_info ["psbt" ])
217
217
for tx_in , psbt_in in zip (decoded_psbt ["tx" ]["vin" ], decoded_psbt ["inputs" ]):
218
- assert tx_in ["sequence" ] > MAX_BIP125_RBF_SEQUENCE
218
+ assert_greater_than ( tx_in ["sequence" ], MAX_BIP125_RBF_SEQUENCE )
219
219
assert "bip32_derivs" not in psbt_in
220
220
assert_equal (decoded_psbt ["tx" ]["locktime" ], block_height + 2 )
221
221
@@ -234,6 +234,13 @@ def run_test(self):
234
234
assert_equal (tx_in ["sequence" ], MAX_BIP125_RBF_SEQUENCE )
235
235
assert_equal (decoded_psbt ["tx" ]["locktime" ], 0 )
236
236
237
+ # Same construction without optional arguments, for a node with -walletrbf=0
238
+ unspent1 = self .nodes [1 ].listunspent ()[0 ]
239
+ psbtx_info = self .nodes [1 ].walletcreatefundedpsbt ([{"txid" :unspent1 ["txid" ], "vout" :unspent1 ["vout" ]}], [{self .nodes [2 ].getnewaddress ():unspent1 ["amount" ]+ 1 }], block_height )
240
+ decoded_psbt = self .nodes [1 ].decodepsbt (psbtx_info ["psbt" ])
241
+ for tx_in in decoded_psbt ["tx" ]["vin" ]:
242
+ assert_greater_than (tx_in ["sequence" ], MAX_BIP125_RBF_SEQUENCE )
243
+
237
244
# Make sure change address wallet does not have P2SH innerscript access to results in success
238
245
# when attempting BnB coin selection
239
246
self .nodes [0 ].walletcreatefundedpsbt ([], [{self .nodes [2 ].getnewaddress ():unspent ["amount" ]+ 1 }], block_height + 2 , {"changeAddress" :self .nodes [1 ].getnewaddress ()}, False )
0 commit comments