1
0

swapserver: use a single config variable for swapserver_url; testnet and regtest have their own config files

This commit is contained in:
ThomasV
2023-08-10 08:11:37 +02:00
parent c5493a354d
commit ff547e3dcf
2 changed files with 11 additions and 12 deletions

View File

@@ -160,7 +160,7 @@ class SwapManager(Logger):
if swap.prepay_hash is not None:
self.prepayments[swap.prepay_hash] = bytes.fromhex(k)
# api url
self.api_url = wallet.config.get_swapserver_url()
self.api_url = wallet.config.SWAPSERVER_URL
# init default min & max
self.init_min_max_values()