Skip to content

Commit dfa78de

Browse files
committed
itest: update to use custom scoped macaroon
1 parent 4dccab6 commit dfa78de

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

itest/test_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var (
3838
faradayArgs = []string{
3939
"--rpclisten=localhost:8465",
4040
"--network=regtest",
41-
"--lnd.macaroonpath=lnd-alice/data/chain/bitcoin/regtest/admin.macaroon",
41+
"--lnd.macaroonpath=lnd-alice/faraday-custom.macaroon",
4242
"--lnd.tlscertpath=lnd-alice/tls.cert",
4343
"--debuglevel=debug",
4444
"--connect_bitcoin",

itest/util.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function start_lnds() {
4343

4444
waitnoerror $LNCLI_SERVER getinfo
4545
waitnoerror $LNCLI_CLIENT getinfo
46+
47+
# Create custom macaroon for faraday to use.
48+
PERMS="onchain:read offchain:read address:read peers:read info:read invoices:read uri:/signrpc.Signer/DeriveSharedKey"
49+
$LNCLI_SERVER bakemacaroon --save_to lnd-alice/faraday-custom.macaroon $PERMS
4650
}
4751

4852
function stop_all() {

0 commit comments

Comments
 (0)