Skip to content

Commit

Permalink
properly print sighashes
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneBronzini committed Jul 13, 2018
1 parent fa7e39d commit 57aa653
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ def test_all(self):
for j, (unspent, script) in enumerate(zip(utxo, self.all[i:i+3])):
outs.append(TxOut(unspent['txout'].value - 1000000, j, script[0]))
prev_types.append(script[2])
print('Spending `{}`, sighashes: '.format(get_type(unspent['solver']),
', '.join([str(sh) for sh in unspent['solver'].get_sighashes()])))
print('Spending `{}`, sighashes: {}'.format(get_type(unspent['solver']),
', '.join([str(sh) for sh in unspent['solver'].get_sighashes()])))

tx = MutableTransaction(2, ins, outs, Locktime(0))
mutable = copy.deepcopy(tx)
Expand Down

0 comments on commit 57aa653

Please sign in to comment.