SatSale

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4eb3da7a2241342647ef77da6d0f4dfe7b27e57c
parent 4e418775b046ac9a3c1bf024d8659b2b3f141c63
Author: nickfarrow <nick@nickfarrow.com>
Date:   Sun, 27 Mar 2022 09:20:36 +1100

fix unlikely offbyone sat bug

Diffstat:
Mnode/lnd.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/node/lnd.py b/node/lnd.py @@ -160,7 +160,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"]) + 1) / (10 ** 8) unconf_paid = 0 return conf_paid, unconf_paid