Lightning Network Daemon

Olaoluwa Osuntokun 87851c2cdf Merge branch 'v0.8.2-beta-3752' into v0.8.2-beta-rc1-branch 4 years ago
.github a3d5a708bb CODEOWNERS: remove top level catch all 4 years ago
aezeed 1e0ed1e52f multi: fix dropped errors 4 years ago
autopilot 3d7de2ad39 multi: remove dead code 4 years ago
brontide 4d4da3c07c brontide: fix goroutine in test 4 years ago
buffer 5d9514fbe4 buffer+pool: add buffer.Read and pool.ReadBuffer 5 years ago
build 3e499f7cc9 build: expand reproducible build system with build and verification steps 4 years ago
chainntnfs da737764d0 chainntnfs/txnotifier: promote historical spend log to info 4 years ago
chanacceptor 423887d3d8 chanacceptor: adding tests for the RPCAcceptor 4 years ago
chanbackup b3599b0354 chanbackup: encode broadcast height in chan ID for unconfirmed channels 4 years ago
channeldb e9d2ad5d73 Revert "channeldb: require minimum db upgrade version" 4 years ago
channelnotifier 3d7de2ad39 multi: remove dead code 4 years ago
cmd bb6e3d92e9 cmd/lncli: exit if user opts to not recover SCB files 4 years ago
contractcourt 7a491776a1 contractcourt: use legacy chain actions of commitSet not found 4 years ago
contrib 1bc011ae5a contrib: add basic bash completion for lncli 7 years ago
discovery 0ad6c4748f discovery/gossiper: fix minor typo 4 years ago
docker e5f0b8e793 Merge pull request #3393 from wroscoe/patch-1 4 years ago
docs c05b8f88ac docs: update watchtower docs to include wtclientrpc info 4 years ago
htlcswitch 6a6ba4efd7 htlcswitch: fix inconsistency between attribute name and godoc comment 4 years ago
input bee777ab5f input: update CommitSpendNoDelay to be aware of tweakless commits, add new witness type 4 years ago
invoices b58dbb2d70 multi: fix canceled spelling 4 years ago
keychain 194a9dea81 multi: support sync freelist option within btcwallet 4 years ago
lncfg 2dddbc84d9 lncfg+lnd: gate usage of tweakless commitments based on local/global feature bits 4 years ago
lnpeer 3f8526a0ca peer+lnpeer: add new methods to expose local+global features for lnpeer interface 4 years ago
lnrpc 1fab42a7e2 lnrpc/routerrpc: make SendToRoute consistent with other payment RPCs 4 years ago
lntest 6530b499fc lntest: add unconfirmed channel SCB test 4 years ago
lntypes afd86763ac lntypes: add ZeroHash 5 years ago
lnwallet 0bff2ed554 lnwallet: fix test inconsistencies to support bitcoind 0.19.0 4 years ago
lnwire 5ed1084130 Merge pull request #3572 from joostjager/canceled-spelling 4 years ago
macaroons a22adc4a8e macaroons: stdlib context 4 years ago
make 4dbe9379a9 Makefile: ensure submodules are linted, covered, and tested 4 years ago
mobile 2445be6552 mobile: Updating sample_lnd.conf to contain norest config 4 years ago
monitoring 3d7de2ad39 multi: remove dead code 4 years ago
multimutex 0df3ff4994 multimutex: add new multimutex package 6 years ago
nat a27ac66eed server: add periodic renewal of port forwarding 5 years ago
netann 3d7de2ad39 multi: remove dead code 4 years ago
peernotifier 4ceceda757 peernotifier: Add peer notifier package for peer online/offline events 4 years ago
pool 17b2140cb5 multi: fix spelling mistakes 5 years ago
queue 976c996fda queue: run go mod tidy 4 years ago
record 1b2c9a02b5 record+tlv/onion_types: move type constants to route/hop 4 years ago
routing 610a93e2ff routing/chainview: check GetCFilter error 4 years ago
scripts 45114cb819 build: bump to bitcoind 0.18.1 for itests 4 years ago
shachain 3d7de2ad39 multi: remove dead code 4 years ago
signal 0ca65208c5 signal: don't attempt to catch SIGSTOP 5 years ago
subscribe b58dbb2d70 multi: fix canceled spelling 4 years ago
sweep b58dbb2d70 multi: fix canceled spelling 4 years ago
ticker 567c357c61 ticker+queue: run go mod tidy 4 years ago
tlv aefec9b10f tlv: return parsed types from DecodeWithParsedTypes 4 years ago
tor c4415f0400 Merge pull request #3044 from cfromknecht/spelling-fixes 5 years ago
walletunlocker 194a9dea81 multi: support sync freelist option within btcwallet 4 years ago
watchtower 4b65aea306 watchtower+htlcswitch: update client tower logic to recognize safu commitments 4 years ago
zpay32 0f6e11c35f zpay32: check invoice length while decoding 4 years ago
.gitignore 187bd29d2d gitignore: add mobile/build 4 years ago
.golangci.yml 16941d7aad build: nerf linter 4 years ago
.travis.yml 45114cb819 build: bump to bitcoind 0.18.1 for itests 4 years ago
Dockerfile d9e0f6c220 Fixed dockerfile by adding version numbers to base containers 4 years ago
LICENSE 62778c61cc lnd: update copyright notice 5 years ago
Makefile da1b599d88 Makefile+release: only use -trimpath on release script 4 years ago
README.md d6bbb11cac README: update dev slack link 4 years ago
breacharbiter.go a58cfa65ff lnwallet+breacharbiter: update breach logic to be aware of new commitment format 4 years ago
breacharbiter_test.go a58cfa65ff lnwallet+breacharbiter: update breach logic to be aware of new commitment format 4 years ago
chainparams.go 6fd5ef88b6 add litecoin regtest configuration to lnd 5 years ago
chainregistry.go b63ed5ad56 config: add sync freelist cli flag 4 years ago
chancloser.go c90b1dd17d chancloser: mark commitment broadcast before publish 4 years ago
channel_notifier.go b53899c43c lnd: rename package main->lnd 5 years ago
chanrestore.go 9b65a90f3f chanbackup: set funding broadcast height on restore 4 years ago
config.go b63ed5ad56 config: add sync freelist cli flag 4 years ago
doc.go b53899c43c lnd: rename package main->lnd 5 years ago
fundingmanager.go d7fd142d1f funding: ensure the chan policy max htlc size is below max pay size 4 years ago
fundingmanager_test.go 3f8526a0ca peer+lnpeer: add new methods to expose local+global features for lnpeer interface 4 years ago
go.mod 2b1effdf99 build: bump btcsuite and neutrino dependencies to latest tagged versions 4 years ago
go.sum 2b1effdf99 build: bump btcsuite and neutrino dependencies to latest tagged versions 4 years ago
lnd.go b63ed5ad56 config: add sync freelist cli flag 4 years ago
log.go ed954785b2 rpc: add unary+streaming interceptors to log all errors 4 years ago
logo.png fba856068e README: add logo to top portion of page 6 years ago
mock.go 3d7de2ad39 multi: remove dead code 4 years ago
nursery_store.go b53899c43c lnd: rename package main->lnd 5 years ago
nursery_store_test.go b53899c43c lnd: rename package main->lnd 5 years ago
peer.go 0df8cf866d peer: clamp a link's max HTLC forwarding policy to current max HTLC pay size 4 years ago
peer_test.go b53899c43c lnd: rename package main->lnd 5 years ago
pilot.go c38f241b51 pilot: fix log message in initAutoPilot 4 years ago
rpcserver.go 0fc401de19 routing+routerrpc: take max cltv limit into account within path finding 4 years ago
sample-lnd.conf a38d44e3da sample-lnd.conf: add watchtower and wtclient sample confs 4 years ago
server.go b58dbb2d70 multi: fix canceled spelling 4 years ago
server_test.go 2bef62b467 lnd: remove global var access from genCertPair 4 years ago
subrpcserver_config.go 2cc5891c8c lnrpc/walletrpc: use current height as height hint for cpfp 4 years ago
test_utils.go 0b62126067 multi: update funding workflow to be aware of new tweakless commits 4 years ago
utxonursery.go ff1d1fbaeb utxonursery: lower shutdown message log level 4 years ago
utxonursery_test.go 3d7de2ad39 multi: remove dead code 4 years ago
witness_beacon.go 1a80a1e540 witness_beacon: do not look up invoice preimages 5 years ago

README.md

Lightning Network Daemon

Build Status MIT licensed Irc Godoc

The Lightning Network Daemon (lnd) - is a complete implementation of a Lightning Network node. lnd has several pluggable back-end chain services including btcd (a full-node), bitcoind, and neutrino (a new experimental light client). The project's codebase uses the btcsuite set of Bitcoin libraries, and also exports a large set of isolated re-usable Lightning Network related libraries within it. In the current state lnd is capable of:

  • Creating channels.
  • Closing channels.
  • Completely managing all channel states (including the exceptional ones!).
  • Maintaining a fully authenticated+validated channel graph.
  • Performing path finding within the network, passively forwarding incoming payments.
  • Sending outgoing onion-encrypted payments through the network.
  • Updating advertised fee schedules.
  • Automatic channel management (autopilot).

Lightning Network Specification Compliance

lnd fully conforms to the Lightning Network specification (BOLTs). BOLT stands for: Basis of Lightning Technology. The specifications are currently being drafted by several groups of implementers based around the world including the developers of lnd. The set of specification documents as well as our implementation of the specification are still a work-in-progress. With that said, the current status of lnd's BOLT compliance is:

  • [X] BOLT 1: Base Protocol
  • [X] BOLT 2: Peer Protocol for Channel Management
  • [X] BOLT 3: Bitcoin Transaction and Script Formats
  • [X] BOLT 4: Onion Routing Protocol
  • [X] BOLT 5: Recommendations for On-chain Transaction Handling
  • [X] BOLT 7: P2P Node and Channel Discovery
  • [X] BOLT 8: Encrypted and Authenticated Transport
  • [X] BOLT 9: Assigned Feature Flags
  • [X] BOLT 10: DNS Bootstrap and Assisted Node Location
  • [X] BOLT 11: Invoice Protocol for Lightning Payments

Developer Resources

The daemon has been designed to be as developer friendly as possible in order to facilitate application development on top of lnd. Two primary RPC interfaces are exported: an HTTP REST API, and a gRPC service. The exported API's are not yet stable, so be warned: they may change drastically in the near future.

An automatically generated set of documentation for the RPC APIs can be found at api.lightning.community. A set of developer resources including talks, articles, and example applications can be found at: dev.lightning.community.

Finally, we also have an active Slack where protocol developers, application developers, testers and users gather to discuss various aspects of lnd and also Lightning in general.

Installation

In order to build from source, please see the installation instructions.

Docker

To run lnd from Docker, please see the main Docker instructions

IRC

  • irc.freenode.net
  • channel #lnd
  • webchat

Security

The developers of lnd take security very seriously. The disclosure of security vulnerabilities helps us secure the health of lnd, privacy of our users, and also the health of the Lightning Network as a whole. If you find any issues regarding security or privacy, please disclose the information responsibly by sending an email to security at lightning dot engineering, preferably [encrypted using our designated PGP key (91FE464CD75101DA6B6BAB60555C6465E5BCB3AF) which can be found here.

Further reading