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

Use min_firmware_version/min_bootloader_version from releases.json #308

Closed prusnak closed 5 years ago

prusnak commented 6 years ago

In https://github.com/trezor/webwallet-data/commit/5c97b69f1f85412f92b5e328f039b1e3a51c67e6 we introduced the min_bootloader_version field. This reflects the minimum bootloader version required to apply this update.

We should change the following block to take this into account and pick the latest firmware update which is applicable: https://github.com/trezor/python-trezor/blob/15df848b05843a5e7d032669361f9ef4ec702fc0/trezorctl#L516-L530