Browse Source

re-start Taker only on confirmfun, don't sync blockchain at end

master
Adam Gibson 9 years ago
parent
commit
ceff9fa829
No known key found for this signature in database
GPG Key ID: B3AE09F1E9A3197A
  1. 5
      jmclient/taker.py
  2. 1
      scripts/sample-schedule-for-testnet

5
jmclient/taker.py

@ -611,7 +611,6 @@ class Taker(object):
jm_single().bc_interface.add_tx_notify(
self.latest_tx, self.unconfirm_callback,
self.confirm_callback, self.my_cj_addr)
self.on_finished_callback(pushed, fromtx=True)
def self_sign_and_push(self):
self.self_sign()
@ -621,4 +620,6 @@ class Taker(object):
jlog.debug("Unconfirmed callback in sendpayment, ignoring")
def confirm_callback(self, txd, txid, confirmations):
jlog.debug("Confirmed callback in sendpayment, confs: " + str(confirmations))
jlog.debug("Confirmed callback in taker, confs: " + str(confirmations))
fromtx=False if self.schedule_index + 1 == len(self.schedule) else True
self.on_finished_callback(True, fromtx=fromtx)

1
scripts/sample-schedule-for-testnet

@ -1,2 +1,3 @@
#sample for testing
1, 50000000, 3, n18jvNgdCWkb5YWEMVARjBfcizg4kHcYRZ
0, 80000000, 2, n18jvNgdCWkb5YWEMVARjBfcizg4kHcYRZ
Loading…
Cancel
Save