|
|
@ -81,10 +81,11 @@ expected_key_ids = { |
|
|
|
'reuben': ('1290A1D0FA7EE109',), |
|
|
|
'reuben': ('1290A1D0FA7EE109',), |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if platform.system() == 'Darwin': |
|
|
|
USE_PLATFORM = os.getenv('USE_PLATFORM', platform.system()) |
|
|
|
|
|
|
|
if USE_PLATFORM == 'Darwin': |
|
|
|
BIN_ARCH = 'osx64' |
|
|
|
BIN_ARCH = 'osx64' |
|
|
|
FILE_EXT = 'tar.gz' |
|
|
|
FILE_EXT = 'tar.gz' |
|
|
|
elif platform.system() == 'Windows': |
|
|
|
elif USE_PLATFORM == 'Windows': |
|
|
|
BIN_ARCH = 'win64' |
|
|
|
BIN_ARCH = 'win64' |
|
|
|
FILE_EXT = 'zip' |
|
|
|
FILE_EXT = 'zip' |
|
|
|
else: |
|
|
|
else: |
|
|
@ -1076,29 +1077,27 @@ def main(): |
|
|
|
particl_wallet_mnemonic = s[1].strip('"') |
|
|
|
particl_wallet_mnemonic = s[1].strip('"') |
|
|
|
continue |
|
|
|
continue |
|
|
|
if name == 'withcoin' or name == 'withcoins': |
|
|
|
if name == 'withcoin' or name == 'withcoins': |
|
|
|
coins = s[1].split(',') |
|
|
|
for coin in [s.lower() for s in s[1].split(',')]: |
|
|
|
for coin in coins: |
|
|
|
|
|
|
|
if coin not in known_coins: |
|
|
|
if coin not in known_coins: |
|
|
|
exitWithError('Unknown coin {}'.format(coin)) |
|
|
|
exitWithError('Unknown coin {}'.format(coin)) |
|
|
|
with_coins.add(coin) |
|
|
|
with_coins.add(coin) |
|
|
|
continue |
|
|
|
continue |
|
|
|
if name == 'withoutcoin' or name == 'withoutcoins': |
|
|
|
if name == 'withoutcoin' or name == 'withoutcoins': |
|
|
|
coins = s[1].split(',') |
|
|
|
for coin in [s.lower() for s in s[1].split(',')]: |
|
|
|
for coin in coins: |
|
|
|
|
|
|
|
if coin not in known_coins: |
|
|
|
if coin not in known_coins: |
|
|
|
exitWithError('Unknown coin {}'.format(coin)) |
|
|
|
exitWithError('Unknown coin {}'.format(coin)) |
|
|
|
with_coins.discard(coin) |
|
|
|
with_coins.discard(coin) |
|
|
|
continue |
|
|
|
continue |
|
|
|
if name == 'addcoin': |
|
|
|
if name == 'addcoin': |
|
|
|
if s[1] not in known_coins: |
|
|
|
add_coin = s[1].lower() |
|
|
|
|
|
|
|
if add_coin not in known_coins: |
|
|
|
exitWithError('Unknown coin {}'.format(s[1])) |
|
|
|
exitWithError('Unknown coin {}'.format(s[1])) |
|
|
|
add_coin = s[1] |
|
|
|
|
|
|
|
with_coins = {add_coin, } |
|
|
|
with_coins = {add_coin, } |
|
|
|
continue |
|
|
|
continue |
|
|
|
if name == 'disablecoin': |
|
|
|
if name == 'disablecoin': |
|
|
|
if s[1] not in known_coins: |
|
|
|
disable_coin = s[1].lower() |
|
|
|
|
|
|
|
if disable_coin not in known_coins: |
|
|
|
exitWithError('Unknown coin {}'.format(s[1])) |
|
|
|
exitWithError('Unknown coin {}'.format(s[1])) |
|
|
|
disable_coin = s[1] |
|
|
|
|
|
|
|
continue |
|
|
|
continue |
|
|
|
if name == 'htmlhost': |
|
|
|
if name == 'htmlhost': |
|
|
|
htmlhost = s[1].strip('"') |
|
|
|
htmlhost = s[1].strip('"') |
|
|
|