lightning-terminal
lightning-terminal copied to clipboard
ui: reflect chain sync progress of backend
Depending on the exact configuration a user is using, it may be the case that after the UI is up, and the user has logged in, the backend is still syncing to the latest tip of the blockchain. In this scenario, certain lnd
RPCs won't be available as we only fully start the RPC server once we know the backend is fully synced to the chain.
This has two implications:
- We should show sync progress in the UI, and gray out certain actions until the backend has been synced.
- We may want to wait off on starting the
loopd
portion of the binary (if it's running locally), as a recent change to lnd 0.10.1, makes theChainNotifier
RPC server no longer start up if the chain is still being synced.