fix: set_paid

This commit is contained in:
ThomasV 2015-04-22 11:59:15 +02:00
parent e878d79373
commit 2753a0bbea
1 changed files with 2 additions and 1 deletions

View File

@ -1147,6 +1147,7 @@ class ElectrumWindow(QMainWindow):
def broadcast_thread():
# non-GUI thread
pr = self.payment_request
key = pr.get_id()
if pr is None:
return self.wallet.sendtx(tx)
if pr.has_expired():
@ -1155,7 +1156,7 @@ class ElectrumWindow(QMainWindow):
status, msg = self.wallet.sendtx(tx)
if not status:
return False, msg
pr.set_paid(tx.hash())
self.invoices.set_paid(key, tx.hash())
self.payment_request = None
refund_address = self.wallet.addresses()[0]
ack_status, ack_msg = pr.send_ack(str(tx), refund_address)