1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-04 22:02:34 +00:00

flake8: fix complaints in new code.

One of these days I'm going to automate this check.
This commit is contained in:
matejcik 2018-03-20 13:29:33 +01:00
parent 7e1d962799
commit 4b59d9191c

View File

@ -778,14 +778,14 @@ class ProtocolMixin(object):
tx.inputs = inputs tx.inputs = inputs
tx.outputs = outputs tx.outputs = outputs
txes = { None: tx } txes = {None: tx}
for inp in inputs: for inp in inputs:
if inp.prev_hash in txes: if inp.prev_hash in txes:
continue continue
if inp.script_type in (proto.InputScriptType.SPENDP2SHWITNESS, if inp.script_type in (proto.InputScriptType.SPENDP2SHWITNESS,
proto.InputScriptType.SPENDWITNESS): proto.InputScriptType.SPENDWITNESS):
continue continue
if not self.tx_api: if not self.tx_api: