Skip to content

Commit 4d43068

Browse files
committed
terminal: fix macaroon DB directory
The macarooon db should be under the network directory.
1 parent f52b046 commit 4d43068

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

terminal.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ func (g *LightningTerminal) startSubservers() error {
675675

676676
// Set up the macaroon service.
677677
rks, db, err := lndclient.NewBoltMacaroonStore(
678-
g.cfg.LitDir, lncfg.MacaroonDBName, macDatabaseOpenTimeout,
678+
filepath.Join(g.cfg.LitDir, g.cfg.Network),
679+
lncfg.MacaroonDBName, macDatabaseOpenTimeout,
679680
)
680681
if err != nil {
681682
return err

0 commit comments

Comments
 (0)