Browse Source

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.
master
Adam Gibson 5 years ago
parent
commit
ebd54d68e1
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 2
      scripts/yg-privacyenhanced.py

2
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

Loading…
Cancel
Save