From dcfc61077553ac3782bb228f83cbf0fb043bf4a7 Mon Sep 17 00:00:00 2001 From: Adam Gibson Date: Thu, 19 Nov 2020 12:04:45 +0000 Subject: [PATCH] Bugfix: allow minsize dynamic update Before this bugfix, the user-chosen minsize is passed to the constructor of the YieldGenerator class unaltered, even though it was dynamically updated to ensure 20% of txfee profit in all cases (the wrong variable was passed). This commit fixes that (`minsize` not `options.minsize`). --- jmclient/jmclient/yieldgenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jmclient/jmclient/yieldgenerator.py b/jmclient/jmclient/yieldgenerator.py index 34eb24a..bf91a30 100644 --- a/jmclient/jmclient/yieldgenerator.py +++ b/jmclient/jmclient/yieldgenerator.py @@ -271,7 +271,7 @@ def ygmain(ygclass, txfee=1000, cjfee_a=200, cjfee_r=0.002, ordertype='reloffer' jlog.debug("Set the offer type string to: " + ordertype) maker = ygclass(wallet_service, [options.txfee, cjfee_a, cjfee_r, - ordertype, options.minsize]) + ordertype, minsize]) jlog.info('starting yield generator') clientfactory = JMClientProtocolFactory(maker, proto_type="MAKER")