示例#1
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()
示例#2
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)
    def on_welcome(self):
        Maker.on_welcome(self)
        if not os.path.isfile(self.statement_file):
            self.log_statement(
                ['timestamp', 'cj amount/satoshi', 'my input count',
                 'my input value/satoshi', 'cjfee/satoshi', 'earned/satoshi',
                 'confirm time/min', 'notes'])

        timestamp = datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S")
        self.log_statement([timestamp, '', '', '', '', '', '', 'Connected'])
示例#4
0
    def on_welcome(self):
        Maker.on_welcome(self)
        if not os.path.isfile(self.statement_file):
            self.log_statement(
                ['timestamp', 'cj amount/satoshi', 'my input count',
                 'my input value/satoshi', 'cjfee/satoshi', 'earned/satoshi',
                 'confirm time/min', 'notes'])

        timestamp = datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S")
        self.log_statement([timestamp, '', '', '', '', '', '', 'Connected'])
示例#5
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)
 def __init__(self, msgchan, wallet):
     Maker.__init__(self, msgchan, wallet)
     self.msgchan.register_channel_callbacks(self.on_welcome,
                                             self.on_set_topic, None, None,
                                             self.on_nick_leave, None)
     self.tx_unconfirm_timestamp = {}
示例#8
0
 def on_welcome(self):
     Maker.on_welcome(self)
     Taker.on_welcome(self)
     self.takerthread = TakerThread(self)
     self.takerthread.start()
示例#9
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)
示例#10
0
 def __init__(self, msgchan, wallet):
     Maker.__init__(self, msgchan, wallet)
     self.msgchan.register_channel_callbacks(self.on_welcome,
                                             self.on_set_topic, None, None,
                                             self.on_nick_leave, None)
     self.tx_unconfirm_timestamp = {}
 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)