lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.67k stars 2.07k forks source link

lnd seems to expect a macaroon even when running in neutrino mode. #6004

Closed aphex3k closed 2 years ago

aphex3k commented 2 years ago

Background

I would like to run lnd as watchtower only with not wallet or channel functionality

Your environment

[Application Options]
nolisten=true
rpclisten=0.0.0.0:10009
maxpendingchannels=0

[Bitcoin]
bitcoin.active=1
bitcoin.mainnet=1
bitcoin.node=neutrino

[Wtclient]
wtclient.active=0

[Watchtower]
watchtower.active=1

The container starts all right and logs show a running lnd.

# docker exec -it lnd lncli tower info
[lncli] could not load global options: unable to read macaroon path (check the network setting!): open /data/.lnd/data/chain/bitcoin/mainnet/admin.macaroon: no such file or directory

Expected behaviour

After the node started I expect it to provide the watchtower information when queried using lncli tower info.

Actual behaviour

lnd seems to expect a macaroon even when running in neutrino mode.

aphex3k commented 2 years ago

I found the #4906 and the feeurl in the sample conf to solve my problem