joinmarket/scripts/yield-generator-basic.py
dchoe a490ddf3d1
Move YG settings to a config file
Allow YG settings to be saved to joinmarket.cfg.
Before this commit, yield generator settings were
set inside the python script, which is not good.
After this commit, the order of precedence for the
settings for a yield generator is:
* Command line arguments, or
* Settings in [YIELDGENERATOR] in joinmarket.cfg, or
* default config settings in jmclient.configure.py
2021-01-20 12:45:47 +00:00

11 lines
353 B
Python
Executable file

#!/usr/bin/env python3
from jmbase import jmprint
from jmclient import YieldGeneratorBasic, ygmain
# YIELD GENERATOR SETTINGS ARE NOW IN YOUR joinmarket.cfg CONFIG FILE
# (You can also use command line flags; see --help for this script).
if __name__ == "__main__":
ygmain(YieldGeneratorBasic, nickserv_password='')
jmprint('done', "success")