@@ -206,9 +206,6 @@ def test_simple_two_outputs(self):
206
206
207
207
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx )
208
208
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
209
- totalOut = 0
210
- for out in dec_tx ['vout' ]:
211
- totalOut += out ['value' ]
212
209
213
210
assert len (dec_tx ['vin' ]) > 0
214
211
assert_equal (dec_tx ['vin' ][0 ]['scriptSig' ]['hex' ], '' )
@@ -331,10 +328,8 @@ def test_coin_selection(self):
331
328
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx )
332
329
333
330
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
334
- totalOut = 0
335
331
matchingOuts = 0
336
332
for i , out in enumerate (dec_tx ['vout' ]):
337
- totalOut += out ['value' ]
338
333
if out ['scriptPubKey' ]['address' ] in outputs :
339
334
matchingOuts += 1
340
335
else :
@@ -361,10 +356,8 @@ def test_two_vin(self):
361
356
assert_raises_rpc_error (- 4 , ERR_NOT_ENOUGH_PRESET_INPUTS , self .nodes [2 ].fundrawtransaction , rawtx , add_inputs = False )
362
357
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx , add_inputs = True )
363
358
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
364
- totalOut = 0
365
359
matchingOuts = 0
366
360
for out in dec_tx ['vout' ]:
367
- totalOut += out ['value' ]
368
361
if out ['scriptPubKey' ]['address' ] in outputs :
369
362
matchingOuts += 1
370
363
@@ -395,10 +388,8 @@ def test_two_vin_two_vout(self):
395
388
rawtxfund = self .nodes [2 ].fundrawtransaction (rawtx , add_inputs = True )
396
389
397
390
dec_tx = self .nodes [2 ].decoderawtransaction (rawtxfund ['hex' ])
398
- totalOut = 0
399
391
matchingOuts = 0
400
392
for out in dec_tx ['vout' ]:
401
- totalOut += out ['value' ]
402
393
if out ['scriptPubKey' ]['address' ] in outputs :
403
394
matchingOuts += 1
404
395
0 commit comments