diff --git a/mmgen/rpc.py b/mmgen/rpc.py index 3487bac2..cb1ef2e3 100755 --- a/mmgen/rpc.py +++ b/mmgen/rpc.py @@ -146,7 +146,7 @@ class RPCBackends: if caller.auth_type: auth = 'HTTP' + caller.auth_type.capitalize() + 'Auth' self.session.auth = getattr(requests.auth,auth)(*caller.auth) - if self.proxy: + if self.proxy: # used only by XMR for now: requires pysocks package self.session.proxies.update({ 'http': f'socks5h://{self.proxy}', 'https': f'socks5h://{self.proxy}' diff --git a/setup.cfg b/setup.cfg index 3def017a..2f3c3bd1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -38,7 +38,6 @@ install_requires = ecdsa aiohttp requests - pysocks # xmrwallet.py pexpect scrypt; platform_system != "Windows" # must be installed by hand on MSYS2 semantic-version; platform_system != "Windows" # scripts/create-token.py diff --git a/xmr-requirements.txt b/xmr-requirements.txt new file mode 100644 index 00000000..02c50b62 --- /dev/null +++ b/xmr-requirements.txt @@ -0,0 +1,2 @@ +pycryptodomex +pysocks