Browse Source

dont start yg if no offers

master
Adam Gibson 8 years ago
parent
commit
8e8649f843
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 3
      jmclient/jmclient/maker.py
  2. 4
      jmclient/jmclient/yieldgenerator.py

3
jmclient/jmclient/maker.py

@ -23,6 +23,9 @@ class Maker(object):
self.wallet = wallet self.wallet = wallet
self.nextoid = -1 self.nextoid = -1
self.offerlist = self.create_my_orders() self.offerlist = self.create_my_orders()
if not self.offerlist:
#If we cannot create an offer at startup, quit
sys.exit(0)
self.aborted = False self.aborted = False
def on_auth_received(self, nick, offer, commitment, cr, amount, kphex): def on_auth_received(self, nick, offer, commitment, cr, amount, kphex):

4
jmclient/jmclient/yieldgenerator.py

@ -225,8 +225,8 @@ def ygmain(ygclass, txfee=1000, cjfee_a=200, cjfee_r=0.002, ordertype='swreloffe
cjfee_a = int(options.cjfee) cjfee_a = int(options.cjfee)
minsize = options.minsize minsize = options.minsize
else: else:
parser.error('You specified an incorrect order type which ' +\ parser.error('You specified an incorrect offer type which ' +\
'can be either reloffer or absoffer') 'can be either swreloffer or swabsoffer')
sys.exit(0) sys.exit(0)
nickserv_password = options.password nickserv_password = options.password

Loading…
Cancel
Save