commit 54175a6419fafb08770e14555325c8369bb6a9d4
parent d3b0e170dd8698f7b4edfb34063719371852e397
Author: nickfarrow <nicholas.w.farrow@gmail.com>
Date: Thu, 20 Jan 2022 18:10:12 +1100
Bug fixes: missing import and fix unit conversion - no impact for atomic payments.
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/node/lnd.py b/node/lnd.py
@@ -148,7 +148,7 @@ class lnd:
unconf_paid = 0
else:
# Store amount paid and convert to BTC units
- conf_paid = int(invoice_status["amtPaidSat"]) * 10 ** 8
+ conf_paid = int(invoice_status["amtPaidSat"]) / (10 ** 8)
unconf_paid = 0
return conf_paid, unconf_paid
diff --git a/payments/database.py b/payments/database.py
@@ -1,5 +1,5 @@
import sqlite3
-
+import logging
def create_database(name="database.db"):
with sqlite3.connect("database.db") as conn: