Fix: Use string format for electrum servers host:port with prepare.

- Added temp check if config using old object-format servers and convert them to the strings and saves to basicswap.json.
This commit is contained in:
gerlofvanek
2026-01-29 16:48:24 +01:00
parent d1552717ae
commit 12e3d3bab8
2 changed files with 14 additions and 5 deletions

View File

@@ -2469,11 +2469,7 @@ def main():
server_str = s[1].strip()
parts = server_str.split(":")
if len(parts) >= 2:
server = {
"host": parts[0],
"port": int(parts[1]),
"ssl": parts[2].lower() == "true" if len(parts) > 2 else True,
}
server = f"{parts[0]}:{parts[1]}"
if coin_prefix not in electrum_servers:
electrum_servers[coin_prefix] = []
electrum_servers[coin_prefix].append(server)