mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
wownero: Add test.
This commit is contained in:
@@ -576,9 +576,9 @@ class BasicSwap(BaseApp):
|
||||
if self.use_tor_proxy:
|
||||
have_cc_tor_opt = 'use_tor' in chain_client_settings
|
||||
if have_cc_tor_opt and chain_client_settings['use_tor'] is False:
|
||||
self.log.warning('use_tor is true for system but false for ' + coin + '.')
|
||||
self.log.warning(f'use_tor is true for system but false for {coin.name}.')
|
||||
elif have_cc_tor_opt is False and is_private_ip_address(node_host):
|
||||
self.log.warning(f'Not using proxy for {coin} node at private ip address {node_host}.')
|
||||
self.log.warning(f'Not using proxy for {coin.name} node at private ip address {node_host}.')
|
||||
else:
|
||||
proxy_host = self.tor_proxy_host
|
||||
proxy_port = self.tor_proxy_port
|
||||
|
||||
@@ -36,7 +36,3 @@ NAMECOIN_TX = os.getenv('NAMECOIN_TX', 'namecoin-tx' + bin_suffix)
|
||||
XMR_BINDIR = os.path.expanduser(os.getenv('XMR_BINDIR', os.path.join(DEFAULT_TEST_BINDIR, 'monero')))
|
||||
XMRD = os.getenv('XMRD', 'monerod' + bin_suffix)
|
||||
XMR_WALLET_RPC = os.getenv('XMR_WALLET_RPC', 'monero-wallet-rpc' + bin_suffix)
|
||||
|
||||
WOW_BINDIR = os.path.expanduser(os.getenv('WOW_BINDIR', os.path.join(DEFAULT_TEST_BINDIR, 'wownero')))
|
||||
WOWD = os.getenv('WOWD', 'wownerod' + bin_suffix)
|
||||
WOW_WALLET_RPC = os.getenv('WOW_WALLET_RPC', 'wownero-wallet-rpc' + bin_suffix)
|
||||
|
||||
@@ -339,7 +339,7 @@ class HttpHandler(BaseHTTPRequestHandler):
|
||||
coin_available = listAvailableCoins(swap_client, with_variants=False)
|
||||
with_xmr: bool = any(c[0] == Coins.XMR for c in coin_available)
|
||||
with_wow: bool = any(c[0] == Coins.WOW for c in coin_available)
|
||||
coins = [(str(c[0]) + ',0', c[1]) for c in coin_available if c[0] not in (Coins.XMR, )]
|
||||
coins = [(str(c[0]) + ',0', c[1]) for c in coin_available if c[0] not in (Coins.XMR, Coins.WOW)]
|
||||
|
||||
if any(c[0] == Coins.DCR for c in coin_available):
|
||||
coins.append((str(int(Coins.DCR)) + ',1', 'Decred Wallet'))
|
||||
|
||||
Reference in New Issue
Block a user