Skip to content

Commit 591a244

Browse files
committed
loop: add sane default for --lnd.macaroonpath
1 parent 7d5e1a9 commit 591a244

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loopd/config.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ func DefaultConfig() Config {
167167
LoopOutMaxParts: defaultLoopOutMaxParts,
168168
Lnd: &lndConfig{
169169
Host: "localhost:10009",
170+
MacaroonPath: filepath.Join(
171+
btcutil.AppDataDir("lnd", false),
172+
"data", "chain", "bitcoin", DefaultNetwork,
173+
"admin.macaroon",
174+
),
170175
},
171176
}
172177
}

0 commit comments

Comments
 (0)