From 4adde72fd54c0c77decc2bd584e310f109bf7ebd Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sat, 29 Apr 2023 07:07:48 -0700 Subject: [PATCH] Bump LND, fix BalanceLogs not found on new coordinator instance --- api/views.py | 9 ++++++--- docker/lnd/Dockerfile | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/api/views.py b/api/views.py index 243f2302..f7caffef 100644 --- a/api/views.py +++ b/api/views.py @@ -934,9 +934,12 @@ class InfoView(ListAPIView): ) context["bond_size"] = float(config("DEFAULT_BOND_SIZE")) - context["current_swap_fee_rate"] = Logics.compute_swap_fee_rate( - BalanceLog.objects.latest("time") - ) + try: + context["current_swap_fee_rate"] = Logics.compute_swap_fee_rate( + BalanceLog.objects.latest("time") + ) + except BalanceLog.DoesNotExist: + context["current_swap_fee_rate"] = 0 return Response(context, status.HTTP_200_OK) diff --git a/docker/lnd/Dockerfile b/docker/lnd/Dockerfile index f99cf118..7e40b442 100644 --- a/docker/lnd/Dockerfile +++ b/docker/lnd/Dockerfile @@ -1,4 +1,4 @@ -FROM lightninglabs/lnd:v0.16.0-beta +FROM lightninglabs/lnd:v0.16.1-beta ARG LOCAL_USER_ID=9999 ARG LOCAL_GROUP_ID=9999