From 0a8bf9b2c4bdeca73129ecc82fc911d2cd27fabd Mon Sep 17 00:00:00 2001 From: tecnovert Date: Tue, 22 Dec 2020 22:48:07 +0200 Subject: [PATCH] Add dependency to setup.py --- basicswap/interface_xmr.py | 3 ++- setup.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/basicswap/interface_xmr.py b/basicswap/interface_xmr.py index 3f80acc..4817bd0 100644 --- a/basicswap/interface_xmr.py +++ b/basicswap/interface_xmr.py @@ -64,9 +64,10 @@ class XMRInterface(CoinInterface): self._network = network self.blocks_confirmed = coin_settings['blocks_confirmed'] self._restore_height = coin_settings.get('restore_height', 0) - self._fee_priority = coin_settings.get('fee_priority', 0) + self.setFeePriority(coin_settings.get('fee_priority', 0)) def setFeePriority(self, new_priority): + assert(new_priority >= 0 and new_priority < 4), 'Invalid fee_priority value' self._fee_priority = new_priority def setWalletFilename(self, wallet_filename): diff --git a/setup.py b/setup.py index ac9726a..9bf5417 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,7 @@ setuptools.setup( "python-gnupg", "Jinja2", "requests", + "pycryptodome", ], entry_points={ "console_scripts": [