1
0

config: remove a footgun

This commit is contained in:
SomberNight
2025-02-07 16:22:44 +00:00
parent ac20422fb7
commit 5b2068976c
2 changed files with 3 additions and 1 deletions

View File

@@ -186,6 +186,8 @@ class SimpleConfig(Logger):
read_user_dir_function=None):
if options is None:
options = {}
for config_key in options:
assert isinstance(config_key, str), f"{config_key=!r} has type={type(config_key)}, expected str"
Logger.__init__(self)

View File

@@ -326,7 +326,7 @@ def main():
'cmd': 'gui',
SimpleConfig.GUI_NAME.key(): 'qml',
SimpleConfig.WALLET_USE_SINGLE_PASSWORD.key(): True,
SimpleConfig.SWAPSERVER_URL: 'https://swaps.electrum.org/api',
SimpleConfig.SWAPSERVER_URL.key(): 'https://swaps.electrum.org/api',
}
if util.get_android_package_name() == "org.electrum.testnet.electrum":
# ~hack for easier testnet builds. pkgname subject to change.