LND
Lightning Network node implementation in Go
Implemented by Lightning Labs
lightningnetwork/lnd: Lightning Network Daemon ⚡️
lnd/docs at master · lightningnetwork/lnd
LND - Builder's Guide
LND | Lightning Labs API Reference
lnd.conf
Clustering - Builder's Guide
Use non default data directory and lnd.conf position
$ lnd --lnddir path/to/direcotory --configfile path/to/configfile
autopilot
どんな機能なのかわかっていない
特にドキュメントはない
lnd/autopilot.proto at 81b17ef4fde9c73d57e699a97778454198f3893d · lightningnetwork/lnd
Initialization
code:shell
lnd
lncli create
lncli getinfo
sync するまで待つ
Backup and recovery
Disaster recovery - Builder's Guide
lnd/recovery.md at master · lightningnetwork/lnd
Tools???
guggero/chantools: A loose collection of tools all somehow related to lnd and Lightning Network channels.
Seed
wallet 作った時に表示されるのでバックアップをとっておく
SCB
Download SCB file to local
code:shell
scp <user>@<host>:~/.lnd/data/chain/bitcoin/mainnet/channel.backup ./lnd-backup/
Monitor channels
Faraday が公式ツールではある
Get Started - Builder's Guide
balanceofsatoshis
zap と connect
LND Configuration | Zap Documentation
localhost 以外の接続は tls など面倒
ポートフォワード
ssh -L 10009:127.0.0.1:10009 <hostname>
btcd には simnet という regtest みたいなモードがあるらしい
lnd/INSTALL.md at master · lightningnetwork/lnd
macaroon
lnd/macaroons.md at v0.15.5-beta · lightningnetwork/lnd
Important: By default, lnd will create the macaroon files during the unlock phase, .......
lnd/macaroons at master · lightningnetwork/lnd
Operational Safety - Builder's Guide
macaroon を再作成するには、すべての macaroon を削除する。wallet-unlock-password-file での unlock でも生成される。v0.15.5-beta。
docker
local Docker volume permissions issues · Issue #4891 · lightningnetwork/lnd
NAT, IP address
NAT Traversal | Builder's Guide
To open port 9735 is not required, but recommended to accept incoming connections and inbound channels.
Secure Your Lightning Network Node | Builder's Guide
Backend Bitcoin server
lnd/docs/INSTALL.md at master · lightningnetwork/lnd
prune node support
サポートはしている
https://github.com/lightningnetwork/lnd/pull/751
bug : LND frequently loses sync to chain with pruned backend · Issue #8250 · lightningnetwork/lnd
Get Started | Builder's Guide
You may prune your Bitcoin node, though doing so aggressively may impact performance.
LND の seed である aezeed を生成できるページ
Cryptography Toolkit
let's encrypt や外部証明書を使った場合の lncli の使い方はちょっと特殊なので注意
https://github.com/lightningnetwork/lnd/pull/2428