mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-05 04:10:58 +00:00
feat(common/tools): allow overriding non-token network duplicity info
This commit is contained in:
parent
e8fcdbb426
commit
f709df02d6
@ -331,7 +331,11 @@ def check_dups(buckets, print_at_level=logging.WARNING):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
supported = [coin for coin in bucket if not coin["unsupported"]]
|
supported = [coin for coin in bucket if not coin["unsupported"]]
|
||||||
nontokens = [coin for coin in bucket if not coin_info.is_token(coin)]
|
nontokens = [
|
||||||
|
coin
|
||||||
|
for coin in bucket
|
||||||
|
if coin.get("duplicate") and not coin_info.is_token(coin)
|
||||||
|
] # we do not count override-marked coins as duplicates here
|
||||||
cleared = not any(coin.get("duplicate") for coin in bucket)
|
cleared = not any(coin.get("duplicate") for coin in bucket)
|
||||||
|
|
||||||
# string generation
|
# string generation
|
||||||
@ -347,7 +351,7 @@ def check_dups(buckets, print_at_level=logging.WARNING):
|
|||||||
# some previous step has explicitly marked them as non-duplicate
|
# some previous step has explicitly marked them as non-duplicate
|
||||||
level = logging.INFO
|
level = logging.INFO
|
||||||
else:
|
else:
|
||||||
# at most 1 non-token - we tenatively allow token collisions
|
# at most 1 non-token - we tentatively allow token collisions
|
||||||
# when explicitly marked as supported
|
# when explicitly marked as supported
|
||||||
level = logging.WARNING
|
level = logging.WARNING
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user