From ebd54d68e19e9dbf012ba9ae1fa3d5df5372f9a0 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Thu, 12 Nov 2020 15:44:55 +0000 Subject: [PATCH] Bugfix: yg-privacyenhanced non-integer fees Before this commit, the yg-privacyenhanced.py script, which always randomizes coinjoin fees, was not including `sw0absoffer` in the offertypes for which the randomized fee must be kept as an integer, not as a decimal, resulting in those offers being ignored by other bots. After this commit, `sw0absoffer` (as well as `swabsoffer`) offers always use integer coinjoin fees, as intended. --- scripts/yg-privacyenhanced.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/yg-privacyenhanced.py b/scripts/yg-privacyenhanced.py index 7c1f28a..4a36720 100755 --- a/scripts/yg-privacyenhanced.py +++ b/scripts/yg-privacyenhanced.py @@ -60,7 +60,7 @@ class YieldGeneratorPrivacyEnhanced(YieldGeneratorBasic): randomize_maxsize = int(random.uniform(possible_maxsize * (1 - float(size_factor)), possible_maxsize)) - if self.ordertype == 'swabsoffer': + if self.ordertype in ['swabsoffer', 'sw0absoffer']: randomize_cjfee = int(random.uniform(float(cjfee_a) * (1 - float(cjfee_factor)), float(cjfee_a) * (1 + float(cjfee_factor)))) randomize_cjfee = randomize_cjfee + randomize_txfee