@@ -183,7 +183,6 @@ def test_simple(self):
183
183
inputs = [ ]
184
184
outputs = { self .nodes [0 ].getnewaddress () : 1.0 }
185
185
rawtx = self .nodes [2 ].createrawtransaction (inputs , outputs )
186
- dec_tx = self .nodes [2 ].decoderawtransaction (rawtx )
187
186
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx )
188
187
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
189
188
assert len (dec_tx ['vin' ]) > 0 #test that we have enough inputs
@@ -193,8 +192,6 @@ def test_simple_two_coins(self):
193
192
inputs = [ ]
194
193
outputs = { self .nodes [0 ].getnewaddress () : 2.2 }
195
194
rawtx = self .nodes [2 ].createrawtransaction (inputs , outputs )
196
- dec_tx = self .nodes [2 ].decoderawtransaction (rawtx )
197
-
198
195
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx )
199
196
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
200
197
assert len (dec_tx ['vin' ]) > 0 #test if we have enough inputs
@@ -206,7 +203,6 @@ def test_simple_two_outputs(self):
206
203
inputs = [ ]
207
204
outputs = { self .nodes [0 ].getnewaddress () : 2.6 , self .nodes [1 ].getnewaddress () : 2.5 }
208
205
rawtx = self .nodes [2 ].createrawtransaction (inputs , outputs )
209
- dec_tx = self .nodes [2 ].decoderawtransaction (rawtx )
210
206
211
207
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx )
212
208
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
@@ -364,7 +360,6 @@ def test_two_vin(self):
364
360
# Should fail without add_inputs:
365
361
assert_raises_rpc_error (- 4 , ERR_NOT_ENOUGH_PRESET_INPUTS , self .nodes [2 ].fundrawtransaction , rawtx , add_inputs = False )
366
362
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx , add_inputs = True )
367
-
368
363
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
369
364
totalOut = 0
370
365
matchingOuts = 0
0 commit comments