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

tx_api.get_tx incompatible with current blockbook #326

Closed tarpas closed 5 years ago

tarpas commented 5 years ago

When using tx_api.get_tx either from trezorctl or from unit tests (without txcache) there is an exception

>       t.lock_time = data["locktime"]
E       KeyError: 'locktime'

trezorlib/tx_api.py:95: KeyError

Current blockbook doesn't provide locktime.

See, e.g.: https://btc4.trezor.io/api/tx/d5f65ee80147b4bcc70b75e4bbf2d7382021b871bd8867ef8fa525ef50864882