Bump LND, fix BalanceLogs not found on new coordinator instance

This commit is contained in:
Reckless_Satoshi 2023-04-29 07:07:48 -07:00
parent 3c55a14b45
commit 4adde72fd5
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 7 additions and 4 deletions

View File

@ -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)

View File

@ -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