Reduce lnd log errors if watchtower disabled

This commit is contained in:
Taylor Helsper 2021-09-06 14:01:32 -05:00
parent 6e01f1903c
commit c0e6b78bc2

View File

@ -84,6 +84,7 @@ def update_lightning_info():
lightning_channels = lnd_get("/channels") lightning_channels = lnd_get("/channels")
lightning_channel_balance = lnd_get("/balance/channels") lightning_channel_balance = lnd_get("/balance/channels")
lightning_wallet_balance = lnd_get("/balance/blockchain") lightning_wallet_balance = lnd_get("/balance/blockchain")
if is_watchtower_enabled():
lightning_watchtower_server_info = lnd_get_v2("/watchtower/server") lightning_watchtower_server_info = lnd_get_v2("/watchtower/server")
# Poll slower (make sure we gather data early) # Poll slower (make sure we gather data early)