trezor / python-trezor

:snake: Don't use this repo, use the new monorepo instead:
https://github.com/trezor/trezor-firmware
GNU Lesser General Public License v3.0
201 stars 194 forks source link

Error in Sign_tx command #313

Closed strmci closed 5 years ago

strmci commented 5 years ago

After the option: Input type (address, segwit, p2shsegwit) [address]:

Error:


Traceback (most recent call last):
  File "/home/tomas/.local/bin/trezorctl", line 1641, in <module>
    cli()  # pylint: disable=E1120
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "/home/tomas/.local/bin/trezorctl", line 707, in sign_tx
    prev_block_hash_bip115=prev_blockhash,
UnboundLocalError: local variable 'prev_blockhash' referenced before assignment```