1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 11:28:14 +00:00
Go to file
matejcik 8906ebf92c coin_info: sort keys after deduplication
this ensures that key order is stable in cases where some ERC20 tokens
are sorted with identical keys which change later

i.e.: Two tokens with erc20:eth:REP keys are sorted based on the order
of reading them from disk. Previously, at most one such key would be
left in data so their mutual order wouldn't matter. Now, one of them can
be deprecated and get a ":deprecated" suffix. Depending on the load
order, this could be the first or the second of them, so the resulting
sort would not be stable.
To fix that, we do key deduplication first and sorting second.

To prevent further problems like this, we also sort glob results.
2018-12-03 16:47:13 +01:00
defs defs: add NIX 2018-12-02 12:43:11 +01:00
keys add keys in txt format 2017-05-12 22:43:50 +02:00
protob protobuf: eth fix 2018-11-16 14:14:18 +01:00
tools coin_info: sort keys after deduplication 2018-12-03 16:47:13 +01:00
udev udev: add more info about udev rules path 2018-10-17 14:28:20 +02:00
.gitignore fix gitignore 2018-10-19 18:07:24 +02:00
.gitmodules defs: add ethereum/tokens submodules 2018-05-22 19:33:21 +02:00
.travis.yml tools/support.py: set --ignore-tokens as default when running the checks 2018-11-12 12:08:33 +01:00
COPYING added license (LGPL-3.0+) 2017-06-26 11:37:20 +02:00
README.md add travis check for coins.json 2017-11-14 02:18:28 +01:00
shell.nix nix: add shell.nix 2018-10-19 18:07:24 +02:00

trezor-common

Build Status Gitter

Common files shared among TREZOR repositories.

This repo is meant to be included as submodule to others using:

git submodule add https://github.com/trezor/trezor-common.git trezor-common