Skip to content

Commit

Permalink
fix test code duplication from 3a0de44
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Apr 15, 2021
1 parent 0045caf commit 2573747
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/functional/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,12 +502,9 @@ def gen_return_txouts():
txouts = []
from .messages import CTxOut, CTxOutValue
txout = CTxOut()
txout.nValue = 0
txout.nValue = CTxOutValue(0)
txout.scriptPubKey = hex_str_to_bytes(script_pubkey)
for _ in range(128):
txout = CTxOut()
txout.nValue = CTxOutValue(0)
txout.scriptPubKey = hex_str_to_bytes(script_pubkey)
txouts.append(txout)
return txouts

Expand Down

0 comments on commit 2573747

Please sign in to comment.