Esempio n. 1
0
 def __init__(self, msgchan, wallet, send_jobs, options, waittime):
     self.send_jobs = send_jobs
     self.job_index = 0
     self.options = options
     self.waittime = waittime
     Maker.__init__(self, msgchan, wallet)
     Taker.__init__(self, msgchan)
Esempio n. 2
0
 def on_welcome(self):
     Maker.on_welcome(self)
     Taker.on_welcome(self)
     if self.waittime > 0:
         ##zero means never be a taker
         self.takerthread = TakerThread(self)
         self.takerthread.start()
Esempio n. 3
0
 def __init__(self,
              msgchan,
              wallet,
              destaddr,
              amount,
              makercount,
              txfee,
              waittime,
              mixdepth,
              answeryes,
              chooseOrdersFunc,
              isolated=False):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     self.answeryes = answeryes
     self.chooseOrdersFunc = chooseOrdersFunc
     #extra variables for GUI-style
     self.isolated = isolated
     self.txid = None
Esempio n. 4
0
 def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee,
              cjfee, waittime, mixdepth):
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.cjfee = cjfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     Maker.__init__(self, msgchan, wallet)
     Taker.__init__(self, msgchan)
 def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee,
              cjfee, waittime, mixdepth):
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.cjfee = cjfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     Maker.__init__(self, msgchan, wallet)
     Taker.__init__(self, msgchan)
Esempio n. 6
0
 def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee,
              waittime, mixdepth, answeryes, chooseOrdersFunc):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     self.answeryes = answeryes
     self.chooseOrdersFunc = chooseOrdersFunc
Esempio n. 7
0
 def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee,
              waittime, mixdepth, answeryes, chooseOrdersFunc):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     self.answeryes = answeryes
     self.chooseOrdersFunc = chooseOrdersFunc
Esempio n. 8
0
 def __init__(self, msgchan, wallet, destaddr, amount, makercount, txfee,
              waittime, mixdepth, answeryes, chooseOrdersFunc, isolated=False):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.destaddr = destaddr
     self.amount = amount
     self.makercount = makercount
     self.txfee = txfee
     self.waittime = waittime
     self.mixdepth = mixdepth
     self.answeryes = answeryes
     self.chooseOrdersFunc = chooseOrdersFunc
     #extra variables for GUI-style
     self.isolated = isolated
     self.txid = None
Esempio n. 9
0
 def on_welcome(self):
     Taker.on_welcome(self)
     if not self.tumbler_thread:
         self.tumbler_thread = TumblerThread(self)
         self.tumbler_thread.start()
Esempio n. 10
0
 def __init__(self, msgchan, wallet, tx_list, options):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.tx_list = tx_list
     self.options = options
     self.tumbler_thread = None
Esempio n. 11
0
 def on_welcome(self):
     Taker.on_welcome(self)
     if not self.tumbler_thread:
         self.tumbler_thread = TumblerThread(self)
         self.tumbler_thread.start()
Esempio n. 12
0
 def __init__(self, msgchan, wallet, tx_list, options):
     Taker.__init__(self, msgchan)
     self.wallet = wallet
     self.tx_list = tx_list
     self.options = options
     self.tumbler_thread = None
Esempio n. 13
0
 def on_welcome(self):
     Taker.on_welcome(self)
     PaymentThread(self).start()
Esempio n. 14
0
 def get_crypto_box_from_nick(self, nick):
     if self.cjtx:
         return Taker.get_crypto_box_from_nick(self, nick)
     else:
         return Maker.get_crypto_box_from_nick(self, nick)
 def on_welcome(self):
     Maker.on_welcome(self)
     Taker.on_welcome(self)
     self.takerthread = TakerThread(self)
     self.takerthread.start()
 def get_crypto_box_from_nick(self, nick):
     if self.cjtx:
         return Taker.get_crypto_box_from_nick(self, nick)
     else:
         return Maker.get_crypto_box_from_nick(self, nick)
Esempio n. 17
0
 def on_welcome(self):
     Taker.on_welcome(self)
     if not self.isolated:
         PaymentThread(self).start()
Esempio n. 18
0
 def on_welcome(self):
     Maker.on_welcome(self)
     Taker.on_welcome(self)
     self.takerthread = TakerThread(self)
     self.takerthread.start()
Esempio n. 19
0
 def on_welcome(self):
     Taker.on_welcome(self)
     PaymentThread(self).start()