ExchangeUnion / xud-docker

Streamlined setup of xud and all dependencies via docker 🐳
https://docs.exchangeunion.com
GNU Affero General Public License v3.0
5 stars 5 forks source link

feat(arby): add test-mode configuration option #760

Closed erkarl closed 3 years ago

erkarl commented 3 years ago

This commit deprecates the old live-cex configuration value in favour of new test-mode option. If both values are set, the test-mode option takes precedence over the legacy option.

raladev commented 3 years ago
erkarl commented 3 years ago
* [ ]  if i understood correctly , for now xud-docker help output is hardcoded in setup.sh, so it should be changed too

Yep, you're right.

* [ ]  `test-mode` should be `false` as default, that means `live-cex` is `true` as defalt

You mean test-mode=true should be the default, right? This is equivalent to live-cex=false default that we had before?

Want to take a stab at implementing these changes?

erkarl commented 3 years ago

@raladev changes implemented as per yesterday's discussion. test-mode=false is now the default for mainnet, test-mode=true for other networks. I also had to implement some changes from Arby's side https://github.com/ExchangeUnion/market-maker-tools/pull/115

raladev commented 3 years ago
erkarl commented 3 years ago

Updated @raladev

raladev commented 3 years ago
1) Simnet
2) Testnet
3) Mainnet
Please choose the network: 1
🚀 Launching simnet environment
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/usr/local/lib/python3.8/runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "/usr/local/lib/python3.8/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/usr/local/lib/python3.8/site-packages/launcher-1.0.0-py3.8.egg/launcher/__init__.py", line 8, in <module>
    from launcher.node import NodeManager, NodeNotFound
  File "/usr/local/lib/python3.8/site-packages/launcher-1.0.0-py3.8.egg/launcher/node/__init__.py", line 13, in <module>
    from .arby import Arby
  File "/usr/local/lib/python3.8/site-packages/launcher-1.0.0-py3.8.egg/launcher/node/arby.py", line 31
    test_mode = self.node_config["test-mode"] \
            if "test-mode" in self.node_config
                                          ^
SyntaxError: invalid syntax
erkarl commented 3 years ago

Sorry for that, should be fixed now.