1
0

gui: oneserver option: make text more verbose

This commit is contained in:
SomberNight
2025-05-27 17:15:58 +00:00
parent eb05210a00
commit 329ba13093
4 changed files with 28 additions and 15 deletions

View File

@@ -615,12 +615,26 @@ class SimpleConfig(Logger):
return CVLookupHelper()
# config variables ----->
NETWORK_AUTO_CONNECT = ConfigVar('auto_connect', default=True, type_=bool)
NETWORK_AUTO_CONNECT = ConfigVar(
'auto_connect', default=True, type_=bool,
short_desc=lambda: _('Select server automatically'),
long_desc=lambda: _("If auto-connect is enabled, Electrum will always use a server that is on the longest blockchain. "
"If it is disabled, you have to choose a server you want to use. Electrum will warn you if your server is lagging."),
)
NETWORK_ONESERVER = ConfigVar(
'oneserver', default=False, type_=bool,
short_desc=lambda: _('Connect only to a single Electrum Server'),
long_desc=lambda: _('This is only intended for connecting to your own node. '
'Using this option on a public server is a security risk and is discouraged.')
short_desc=lambda: _('Only connect to one server (full trust)'),
long_desc=lambda: _(
"This is only intended for connecting to your own fully trusted server. "
"Using this option on a public server is a security risk and is discouraged."
"\n\n"
"By default, Electrum tries to maintain connections to ~10 servers. "
"One of these nodes gets selected to be the history server and will learn the wallet addresses. "
"All the other nodes are *only* used for block header notifications. "
"\n\n"
"Getting block headers from multiple sources is useful to detect lagging servers, chain splits, and forks. "
"Chain split detection is security-critical for determining number of confirmations."
)
)
NETWORK_PROXY = ConfigVar('proxy', default=None, type_=str, convert_getter=lambda v: "none" if v is None else v)
NETWORK_PROXY_USER = ConfigVar('proxy_user', default=None, type_=str)