Exemplo 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)
Exemplo 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()
Exemplo 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
Exemplo 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)
Exemplo 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
Exemplo 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
Exemplo 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
Exemplo 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()
Exemplo 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
Exemplo 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()
Exemplo 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
Exemplo n.º 13
0
 def on_welcome(self):
     Taker.on_welcome(self)
     PaymentThread(self).start()
Exemplo 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)
Exemplo n.º 17
0
 def on_welcome(self):
     Taker.on_welcome(self)
     if not self.isolated:
         PaymentThread(self).start()
Exemplo n.º 18
0
 def on_welcome(self):
     Maker.on_welcome(self)
     Taker.on_welcome(self)
     self.takerthread = TakerThread(self)
     self.takerthread.start()
Exemplo n.º 19
0
 def on_welcome(self):
     Taker.on_welcome(self)
     PaymentThread(self).start()