mirror of
https://github.com/basicswap/basicswap.git
synced 2026-04-08 18:37:23 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user