@@ -66,6 +66,8 @@ const (
6666 MainnetServer = "autopilot.lightning.finance:12010"
6767 TestnetServer = "test.autopilot.lightning.finance:12010"
6868
69+ lndWalletReadyStatus = "Wallet Ready"
70+
6971 defaultServerTimeout = 10 * time .Second
7072 defaultConnectTimeout = 15 * time .Second
7173 defaultStartupTimeout = 5 * time .Second
@@ -548,10 +550,9 @@ func (g *LightningTerminal) start() error {
548550 err )
549551 }
550552
551- // We can now set the status of LND as running.
552- // This is done _before_ we wait for the macaroon so that
553- // LND commands to create and unlock a wallet can be allowed.
554- g .statusMgr .SetRunning (subservers .LND )
553+ // We now set a custom status for the LND sub-server to indicate that
554+ // the wallet is ready.
555+ g .statusMgr .SetCustomStatus (subservers .LND , lndWalletReadyStatus )
555556
556557 // Now that we have started the main UI web server, show some useful
557558 // information to the user so they can access the web UI easily.
@@ -619,6 +620,10 @@ func (g *LightningTerminal) start() error {
619620 return fmt .Errorf ("could not start LND" )
620621 }
621622
623+ // Mark that lnd is now completely running after connecting the
624+ // lnd clients.
625+ g .statusMgr .SetRunning (subservers .LND )
626+
622627 // If we're in integrated and stateless init mode, we won't create
623628 // macaroon files in any of the subserver daemons.
624629 createDefaultMacaroons := true
0 commit comments