Skip to content
Lightning Network Daemon ⚡️
Branch: master
Clone or download
Roasbeef Merge pull request #2717 from cfromknecht/send-payment-payreq
lnrpc+rpcserver: display payreq via listpayments
Latest commit 4068e78 May 31, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github docs: update contribution checklist Mar 24, 2019
aezeed Add a links to KDF and BIP39 Feb 2, 2019
autopilot multi: fix spelling mistakes May 4, 2019
brontide brontide/conn: expose WriteMessage and Flush on brontide.Conn Apr 22, 2019
buffer buffer+pool: add buffer.Read and pool.ReadBuffer Feb 16, 2019
build build: bump version to 0.6.1-beta May 4, 2019
chainntnfs chainntnfs/neutrino: provide n.quit as neutrino QuitChan option May 9, 2019
chanbackup chanbackup: close temp SCB file before rename May 27, 2019
channeldb channeldb/control_tower test: add TestPaymentControlDeleteNonInFlight May 27, 2019
channelnotifier lnd: introduce the ChannelNotifier. Feb 6, 2019
cmd lncli: include color in getinfo response May 23, 2019
contractcourt Merge pull request #3026 from wpaulino/sweeper-fee-preference May 27, 2019
contrib contrib: add basic bash completion for lncli Jan 30, 2017
discovery Merge pull request #2985 from johng/sub-batch May 29, 2019
docker Build LND subservers when building docker image Apr 18, 2019
docs docs: add new recovery.md explaning methods of fund recovery Apr 11, 2019
htlcswitch Merge pull request #2761 from halseth/reliable-payments-router-state-… May 27, 2019
input Typo corrections in various comments May 10, 2019
invoices cnct+htlcswitch+invoices: move invoice parameter check out of link May 15, 2019
keychain keychain/derivation: adds watchtower session key family Apr 24, 2019
lncfg Merge pull request #2924 from cfromknecht/write-and-flush Apr 27, 2019
lnpeer lnpeer+peer: use importable lnpeer.ErrPeerExiting Apr 27, 2019
lnrpc Merge pull request #2717 from cfromknecht/send-payment-payreq Jun 1, 2019
lntest lntest/itest/lnd_test: assert payreq in listpayment matches paid invoice May 30, 2019
lntypes lntypes: return a value from constructors Mar 15, 2019
lnwallet Merge pull request #3026 from wpaulino/sweeper-fee-preference May 27, 2019
lnwire lnwire: export failureMessageLength constant May 1, 2019
macaroons multi: move Input interface and related code Jan 31, 2019
make lntest: move itest into package May 28, 2019
multimutex multimutex: add new multimutex package Jan 24, 2018
nat server: add periodic renewal of port forwarding Apr 13, 2019
netann netann/chan_status_manager: remove unknown edges from passive disable Mar 13, 2019
pool multi: fix spelling mistakes May 4, 2019
queue Merge pull request #2419 from cfromknecht/brontide-buffer-pool Feb 19, 2019
routing Merge pull request #2717 from cfromknecht/send-payment-payreq Jun 1, 2019
scripts scripts: update bitcoind version to 0.18 May 24, 2019
shachain multi: sort import paths with gofmt Aug 3, 2018
signal signal: don't attempt to catch SIGSTOP Apr 3, 2019
subscribe subscribe: add new subscribe package Feb 6, 2019
sweep sweep: broadcast sweep transactions in descending fee rate order May 24, 2019
ticker ticker: add module support Feb 13, 2019
tor Merge pull request #3044 from cfromknecht/spelling-fixes May 7, 2019
walletunlocker walletunlock: exend the Init and Unlock methods to also return option… Mar 29, 2019
watchtower watchtower/wtdb: add CSessionStatus field to ClientSession May 25, 2019
zpay32 zpay32: move HopHint and DefaultFinalCLTVDelta Mar 15, 2019
.gitignore lntest: move itest into package May 28, 2019
.travis.yml Merge pull request #1881 from halseth/neutrino-integration-tests May 27, 2019
Dockerfile Root Dockerfile now builds subservers May 9, 2019
LICENSE lnd: update copyright notice Nov 2, 2018
Makefile Merge pull request #1881 from halseth/neutrino-integration-tests May 27, 2019
README.md README: remove testnet3 specificity Mar 17, 2019
breacharbiter.go lnd: rename package main->lnd Apr 23, 2019
breacharbiter_test.go multi: address lingering TODO by no longer wiping out local HTLCs on … May 27, 2019
chainparams.go add litecoin regtest configuration to lnd Apr 27, 2019
chainregistry.go lntest: move itest into package May 28, 2019
chancloser.go lnd: rename package main->lnd Apr 23, 2019
channel_notifier.go lnd: rename package main->lnd Apr 23, 2019
chanrestore.go lnd: rename package main->lnd Apr 23, 2019
config.go lntest: move itest into package May 28, 2019
doc.go lnd: rename package main->lnd Apr 23, 2019
fundingmanager.go lntest: move itest into package May 28, 2019
fundingmanager_test.go lntest: move itest into package May 28, 2019
go.mod Merge pull request #3114 from Roasbeef/btcwallet-18-fix-deadlock May 27, 2019
go.sum Merge pull request #3114 from Roasbeef/btcwallet-18-fix-deadlock May 27, 2019
lnd.go Merge pull request #2704 from MDrollette/multiple-opts May 22, 2019
log.go lnd: rename package main->lnd Apr 23, 2019
logo.png README: add logo to top portion of page Sep 29, 2017
mock.go lnwallet: make BlockChainIO.GetUTXO take cancel chan May 9, 2019
nursery_store.go lnd: rename package main->lnd Apr 23, 2019
nursery_store_test.go lnd: rename package main->lnd Apr 23, 2019
peer.go cnct+htlcswitch+invoices: move invoice parameter check out of link May 15, 2019
peer_test.go lnd: rename package main->lnd Apr 23, 2019
pilot.go lnd: rename package main->lnd Apr 23, 2019
release.sh build: update release.sh to account for new lnd package May 6, 2019
rpcserver.go rpcserver: thread payreq to PaymentCreationInfo May 29, 2019
sample-lnd.conf Add minchansize to sample config file May 18, 2019
server.go Merge pull request #3087 from joostjager/move-itest May 29, 2019
server_test.go lnd: rename package main->lnd Apr 23, 2019
subrpcserver_config.go lntest: move itest into package May 28, 2019
test_utils.go channel+cnct: remove preimage from channel and resolution May 15, 2019
utxonursery.go multi: support arbitrary client fee preferences to UtxoSweeper May 24, 2019
utxonursery_test.go multi: support arbitrary client fee preferences to UtxoSweeper May 24, 2019
witness_beacon.go witness_beacon: do not look up invoice preimages May 15, 2019

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:

  • BOLT 1: Base Protocol
  • BOLT 2: Peer Protocol for Channel Management
  • BOLT 3: Bitcoin Transaction and Script Formats
  • BOLT 4: Onion Routing Protocol
  • BOLT 5: Recommendations for On-chain Transaction Handling
  • BOLT 7: P2P Node and Channel Discovery
  • BOLT 8: Encrypted and Authenticated Transport
  • BOLT 9: Assigned Feature Flags
  • BOLT 10: DNS Bootstrap and Assisted Node Location
  • 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

You can’t perform that action at this time.