commit 51a1d1ede2c34571f1bd4eccc1a920f18ba87aa7
parent d161c3536ea1278d3acd4b974c63b0202f264eff
Author: nickfarrow <nicholas.w.farrow@gmail.com>
Date: Thu, 16 Dec 2021 23:01:42 +1100
Ensure conf_paid and unconf_paid are floats before serialization
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/satsale.py b/satsale.py
@@ -259,6 +259,9 @@ def check_payment_status(uuid):
else:
conf_paid, unconf_paid = node.check_payment(invoice["address"])
+ # Remove any Decimal types
+ conf_paid, unconf_paid = float(conf_paid), float(unconf_paid)
+
# Debugging and demo mode which auto confirms payments after 5 seconds
dbg_free_mode_cond = config.free_mode and (time.time() - invoice["time"] > 5)