From 57aa65341c5d436e1eca4f982853e7a6f0432bb5 Mon Sep 17 00:00:00 2001 From: SimoneBronzini Date: Fri, 13 Jul 2018 19:10:05 +0200 Subject: [PATCH] properly print sighashes --- tests/integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration.py b/tests/integration.py index 6346648..b328c62 100644 --- a/tests/integration.py +++ b/tests/integration.py @@ -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)