From f709df02d6058fec937c855469d4d9316ede8d97 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 10 Nov 2020 16:05:40 +0100 Subject: [PATCH] feat(common/tools): allow overriding non-token network duplicity info --- common/tools/cointool.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/tools/cointool.py b/common/tools/cointool.py index cf6b69de2..a2fe27ac9 100755 --- a/common/tools/cointool.py +++ b/common/tools/cointool.py @@ -331,7 +331,11 @@ def check_dups(buckets, print_at_level=logging.WARNING): continue 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) # 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 level = logging.INFO 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 level = logging.WARNING else: