chore: exclude altcoins with names shorter than 4 chars from bitcoin-only check

[no changelog]
pull/3401/head
tychovrahe 7 months ago committed by TychoVrahe
parent bf2697a619
commit 239f3bda5d

@ -4,12 +4,8 @@ RETURN=0
EXCEPTIONS=() EXCEPTIONS=()
EXCEPTIONS+=( "decred" ) # "decred" figures in field names used by the bitcoin app EXCEPTIONS+=( "decred" ) # "decred" figures in field names used by the bitcoin app
EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app EXCEPTIONS+=( "omni" ) # OMNI is part of the bitcoin app
# BIP39 or SLIP39 words that have "dash", "nem", or "flo" in them # BIP39 or SLIP39 words that have "dash" in them
EXCEPTIONS+=( "cinema" "dash" "enemy" "float" "flock" "flower" "floor" "floral" ) EXCEPTIONS+=( "dash" )
EXCEPTIONS+=( "mnemonic" ) # has NEM in it
EXCEPTIONS+=( "workflow" "overflow" ) # has Flo in it
EXCEPTIONS+=( "SyntaxError" ) # has Axe in it
EXCEPTIONS+=( "DKDNEM" ) # has NEM in it, some sort of weird coincidence
EXCEPTIONS+=( "confirm_ethereum_tx" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py EXCEPTIONS+=( "confirm_ethereum_tx" ) # is model-specific, so is in layout/__init__.py instead of ethereum/layout.py
GREP_ARGS=() GREP_ARGS=()
@ -17,8 +13,8 @@ for exception in "${EXCEPTIONS[@]}"; do
GREP_ARGS+=(-e $exception) GREP_ARGS+=(-e $exception)
done done
# dump all coins except the first 3 (Bitcoin, Testnet, Regtest) # dump all coins except the first 3 (Bitcoin, Testnet, Regtest), exclude names with less than 4 characters
ALTCOINS=$(./common/tools/cointool.py dump -l -p -t -d T1B1 -d T2T1 -d T2B1 | grep '"name"' | cut -d '"' -f 4 | tail -n +4) ALTCOINS=$(./common/tools/cointool.py dump -l -p -t -d T1B1 -d T2T1 -d T2B1 | grep '"name"' | cut -d '"' -f 4 | tail -n +4 | awk 'length($0)>3')
# split on newlines only # split on newlines only
OLDIFS=$IFS OLDIFS=$IFS
IFS=" IFS="

Loading…
Cancel
Save