mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 22:24:21 +01:00
docs: update path to where macaroons are stored
Co-Authored-By: Karl Ranna <karl@karlranna.com>
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
856500dc43
commit
dc3db4bf62
@@ -140,9 +140,9 @@ To authenticate using macaroons you need to include the macaroon in the metadata
|
||||
```python
|
||||
import codecs
|
||||
|
||||
# Lnd admin macaroon is at ~/.lnd/admin.macaroon on Linux and
|
||||
# ~/Library/Application Support/Lnd/admin.macaroon on Mac
|
||||
with open(os.path.expanduser('~/.lnd/admin.macaroon'), 'rb') as f:
|
||||
# Lnd admin macaroon is at ~/.lnd/data/chain/bitcoin/simnet/admin.macaroon on Linux and
|
||||
# ~/Library/Application Support/Lnd/data/chain/bitcoin/simnet/admin.macaroon on Mac
|
||||
with open(os.path.expanduser('~/.lnd/data/chain/bitcoin/simnet/admin.macaroon'), 'rb') as f:
|
||||
macaroon_bytes = f.read()
|
||||
macaroon = codecs.encode(macaroon_bytes, 'hex')
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user