1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 06:48:16 +00:00
Commit Graph

19 Commits

Author SHA1 Message Date
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
matejcik
e51aa9b3cd tools: new rules for ERC20 duplicates
We now allow duplicates if they're their own testnets, or if they're
deprecated. Also some checks are smarter.
2018-11-29 15:42:49 +01:00
matejcik
9a8d01a891 coin_info: use beta wallet for list of latest releases 2018-10-29 18:39:18 +01:00
Pavol Rusnak
efba885f6e
defs: check that backend URIs use https 2018-10-27 01:23:49 +02:00
Pavol Rusnak
fba7ae05c9
require https for coin website 2018-10-26 15:23:03 +02:00
Pavol Rusnak
681772e8bb
remove version_group_id from coin definitions 2018-10-15 17:55:09 +02:00
matejcik
8065966e57 tools: take coin_label for human readable name instead of coin_name 2018-10-01 13:32:39 +02:00
Pavol Rusnak
23b07f975d
tools: drop binascii usage 2018-09-13 00:15:08 +02:00
matejcik
50a619e12d coin_info: do not use f-strings in the library
to make it python3.3 compatible
2018-09-04 15:30:48 +02:00
leoreinaux
31b8e872ba change smartcash curve (#202) 2018-08-30 12:04:06 +02:00
matejcik
bc5530e503 coin_info: when support status is unknown, only presume "soon" for tokens 2018-08-28 16:36:13 +02:00
matejcik
4c36e33425 tools: make duplicate detection case-insensitive 2018-08-27 20:07:35 +02:00
matejcik
467b41efda defs/tools: rename "coins" to "bitcoin" 2018-08-24 17:01:44 +02:00
matejcik
0abfb6cd91 coin_info: tweak API for less repetition 2018-08-24 15:20:25 +02:00
matejcik
5ad2eb74a0 coin_info: shuffle knowledge about duplicates, validation
and support information
2018-08-23 13:05:41 +02:00
matejcik
4726d3259e tools: update coin_info to new support method and duplicate checking 2018-08-15 19:24:23 +02:00
matejcik
962178fbeb tools/coin_info.py: use f-strings where appropriate 2018-08-15 17:36:24 +02:00
matejcik
d608294a14 tools: don't be noisy when support info is missing
because we have other tools for that
2018-07-30 16:38:39 +02:00
matejcik
b5443af4c5 tools: coin_defs renamed to coin_info and interface
improved a little
2018-07-30 14:25:53 +02:00