commit 64125fa178dd6b03fc625478fa446d12ba845642
parent a707b7787e90c9994c7ea3b17dad691d938157cf
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Sun, 27 Dec 2020 16:39:02 +1100
store transaction id to payment object
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/invoice/payment_invoice.py b/invoice/payment_invoice.py
@@ -17,11 +17,10 @@ class invoice:
self.confirmed_paid = 0
self.unconfirmed_paid = 0
self.paid = False
+ self.txid = ""
def create_qr(self):
img = qrcode.make(self.address)
img.save('static/qr_codes/{}.png'.format(self.uuid))
return
-
-
diff --git a/pay/bitcoind.py b/pay/bitcoind.py
@@ -34,6 +34,7 @@ class btcd(invoice):
conf_paid = 0
unconf_paid = 0
for tx in relevant_txs:
+ self.txid = tx['txid']
if tx['confirmations'] >= config.required_confirmations:
conf_paid += tx['amount']
else: