@@ -679,7 +679,6 @@ func (g *LightningTerminal) start() error {
679679
680680	// If we're in integrated and stateless init mode, we won't create 
681681	// macaroon files in any of the subserver daemons. 
682- 	createDefaultMacaroons  :=  true 
683682	if  g .cfg .LndMode  ==  ModeIntegrated  &&  g .lndInterceptorChain  !=  nil  && 
684683		g .lndInterceptorChain .MacaroonService () !=  nil  {
685684
@@ -689,16 +688,16 @@ func (g *LightningTerminal) start() error {
689688		// daemons. In all other cases we want default macaroons so we 
690689		// can use the CLI tools to interact with loop/pool/faraday. 
691690		macService  :=  g .lndInterceptorChain .MacaroonService ()
692- 		createDefaultMacaroons  =  ! macService .StatelessInit 
691+ 		g . cfg . statelessInitMode  =  macService .StatelessInit 
693692	}
694693
695694	// Both connection types are ready now, let's start our sub-servers if 
696695	// they should be started locally as an integrated service. 
697696	g .subServerMgr .StartIntegratedServers (
698- 		g .basicClient , g .lndClient , createDefaultMacaroons ,
697+ 		g .basicClient , g .lndClient , ! g . cfg . statelessInitMode ,
699698	)
700699
701- 	err  =  g .startInternalSubServers (createDefaultMacaroons )
700+ 	err  =  g .startInternalSubServers (! g . cfg . statelessInitMode )
702701	if  err  !=  nil  {
703702		return  fmt .Errorf ("could not start litd sub-servers: %v" , err )
704703	}
0 commit comments