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,7 +84,8 @@ def update_lightning_info():
lightning_channels = lnd_get("/channels")
lightning_channel_balance = lnd_get("/balance/channels")
lightning_wallet_balance = lnd_get("/balance/blockchain")
lightning_watchtower_server_info = lnd_get_v2("/watchtower/server")
if is_watchtower_enabled():
lightning_watchtower_server_info = lnd_get_v2("/watchtower/server")
# Poll slower (make sure we gather data early)
if lightning_update_count < 30 or lightning_update_count % 2 == 0: