From 45077b3c3cab0a6dd5f70df22129be1d0b5c7b87 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 28 Feb 2023 12:57:41 +0100 Subject: [PATCH] fix(common): allow duplicate symbol for Ethereum testnets [no changelog] --- common/tools/cointool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/tools/cointool.py b/common/tools/cointool.py index 68960affc0..1de68cadf9 100755 --- a/common/tools/cointool.py +++ b/common/tools/cointool.py @@ -329,10 +329,11 @@ def check_dups(buckets: CoinBuckets, print_at_level: int = logging.WARNING) -> b 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) + eth_testnet = symbol == "teth" # string generation dup_str = ", ".join(coin_str(coin) for coin in bucket) - if len(nontokens) > 1: + if len(nontokens) > 1 and not eth_testnet: # Two or more colliding nontokens. This is always fatal. # XXX consider allowing two nontokens as long as only one is supported? level = logging.ERROR