plugin ConfigVars: define vars less dynamically
and restore ability to have different internal ConfigVar name and user-visible "key" (Keys are hard to change as that breaks compat, but it is nice to be able to change the internal var name, to reorganise stuff sometimes. After new ConfigVars are added, sometimes we get better insight into how the older ones should have been named.) follow-up https://github.com/spesmilo/electrum/pull/9648
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from electrum.simple_config import ConfigVar
|
||||
config_vars = [
|
||||
ConfigVar('swapserver_port', default=None, type_=int),
|
||||
ConfigVar('swapserver_fee_millionths', default=5000, type_=int),
|
||||
ConfigVar('swapserver_ann_pow_nonce', default=0, type_=int),
|
||||
]
|
||||
from electrum.simple_config import ConfigVar, SimpleConfig
|
||||
|
||||
SimpleConfig.SWAPSERVER_PORT = ConfigVar('swapserver_port', default=None, type_=int)
|
||||
SimpleConfig.SWAPSERVER_FEE_MILLIONTHS = ConfigVar('swapserver_fee_millionths', default=5000, type_=int)
|
||||
SimpleConfig.SWAPSERVER_ANN_POW_NONCE = ConfigVar('swapserver_ann_pow_nonce', default=0, type_=int)
|
||||
|
||||
Reference in New Issue
Block a user