@@ -70,7 +70,7 @@ def test_disable_flag(self):
70
70
tx1 .vin = [CTxIn (COutPoint (int (utxo ["txid" ], 16 ), utxo ["vout" ]), nSequence = sequence_value )]
71
71
tx1 .vout = [CTxOut (value , CScript ([b'a' ]))]
72
72
73
- tx1_signed = self .nodes [0 ].signrawtransaction (ToHex (tx1 ))["hex" ]
73
+ tx1_signed = self .nodes [0 ].signrawtransactionwithwallet (ToHex (tx1 ))["hex" ]
74
74
tx1_id = self .nodes [0 ].sendrawtransaction (tx1_signed )
75
75
tx1_id = int (tx1_id , 16 )
76
76
@@ -176,7 +176,7 @@ def test_sequence_lock_confirmed_inputs(self):
176
176
# Overestimate the size of the tx - signatures should be less than 120 bytes, and leave 50 for the output
177
177
tx_size = len (ToHex (tx ))// 2 + 120 * num_inputs + 50
178
178
tx .vout .append (CTxOut (int (value - self .relayfee * tx_size * COIN / 1000 ), CScript ([b'a' ])))
179
- rawtx = self .nodes [0 ].signrawtransaction (ToHex (tx ))["hex" ]
179
+ rawtx = self .nodes [0 ].signrawtransactionwithwallet (ToHex (tx ))["hex" ]
180
180
181
181
if (using_sequence_locks and not should_pass ):
182
182
# This transaction should be rejected
@@ -205,7 +205,7 @@ def test_sequence_lock_unconfirmed_inputs(self):
205
205
tx2 .nVersion = 2
206
206
tx2 .vin = [CTxIn (COutPoint (tx1 .sha256 , 0 ), nSequence = 0 )]
207
207
tx2 .vout = [CTxOut (int (tx1 .vout [0 ].nValue - self .relayfee * COIN ), CScript ([b'a' ]))]
208
- tx2_raw = self .nodes [0 ].signrawtransaction (ToHex (tx2 ))["hex" ]
208
+ tx2_raw = self .nodes [0 ].signrawtransactionwithwallet (ToHex (tx2 ))["hex" ]
209
209
tx2 = FromHex (tx2 , tx2_raw )
210
210
tx2 .rehash ()
211
211
@@ -278,7 +278,7 @@ def test_nonzero_locks(orig_tx, node, relayfee, use_height_lock):
278
278
utxos = self .nodes [0 ].listunspent ()
279
279
tx5 .vin .append (CTxIn (COutPoint (int (utxos [0 ]["txid" ], 16 ), utxos [0 ]["vout" ]), nSequence = 1 ))
280
280
tx5 .vout [0 ].nValue += int (utxos [0 ]["amount" ]* COIN )
281
- raw_tx5 = self .nodes [0 ].signrawtransaction (ToHex (tx5 ))["hex" ]
281
+ raw_tx5 = self .nodes [0 ].signrawtransactionwithwallet (ToHex (tx5 ))["hex" ]
282
282
283
283
assert_raises_rpc_error (- 26 , NOT_FINAL_ERROR , self .nodes [0 ].sendrawtransaction , raw_tx5 )
284
284
@@ -338,7 +338,7 @@ def test_bip68_not_consensus(self):
338
338
tx2 .vout = [CTxOut (int (tx1 .vout [0 ].nValue - self .relayfee * COIN ), CScript ([b'a' ]))]
339
339
340
340
# sign tx2
341
- tx2_raw = self .nodes [0 ].signrawtransaction (ToHex (tx2 ))["hex" ]
341
+ tx2_raw = self .nodes [0 ].signrawtransactionwithwallet (ToHex (tx2 ))["hex" ]
342
342
tx2 = FromHex (tx2 , tx2_raw )
343
343
tx2 .rehash ()
344
344
@@ -388,7 +388,7 @@ def test_version2_relay(self):
388
388
rawtxfund = self .nodes [1 ].fundrawtransaction (rawtx )['hex' ]
389
389
tx = FromHex (CTransaction (), rawtxfund )
390
390
tx .nVersion = 2
391
- tx_signed = self .nodes [1 ].signrawtransaction (ToHex (tx ))["hex" ]
391
+ tx_signed = self .nodes [1 ].signrawtransactionwithwallet (ToHex (tx ))["hex" ]
392
392
self .nodes [1 ].sendrawtransaction (tx_signed )
393
393
394
394
if __name__ == '__main__' :
0 commit comments