Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Go to file
Christian Decker b26afcb3df Merge pull request #83 from ElementsProject/fix-67-crash-on-forget
peer_disconnect: simply free if in STATE_INIT.
2016-11-10 13:57:35 +01:00
bitcoin
ccan ccan: update. 2016-11-09 18:55:15 +10:30
contrib
daemon peer_disconnect: simply free if in STATE_INIT. 2016-11-10 11:21:16 +10:30
doc
secp256k1
test
.gitignore
.gitmodules
check-bolt.c
close_tx.c
close_tx.h
find_p2sh_out.c
find_p2sh_out.h
HACKING.md controlled_time: remove 2016-11-09 18:54:15 +10:30
INSTALL.md
irc.c
irc.h
LICENSE
lightning.pb-c.c
lightning.pb-c.h
lightning.proto
Makefile Makefile: clean gen_ files and ccan/config in make clean. 2016-11-09 08:04:27 +10:30
opt_bits.c
opt_bits.h
overflows.h
permute_tx.c
permute_tx.h
protobuf_convert.c
protobuf_convert.h
README.md
remove_dust.h
TODO.md
utils.c
utils.h opt, utils: new arg for wrappers due to low-level tal change. 2016-11-09 18:56:38 +10:30
version.c
version.h

Lightning Protocol Reference Implementation

In this repository we're developing a reference implementation of bitcoin lightning (see: http://lightning.network which proposed the original "lightning network").

This implementation is being developed in parallel with the protocol definition, which you can find on my fork of the protocol description repository.

If you're interested in using the daemon to test payments, the JSON-RPC interface is documented in the following manual pages:

Steps:

  1. Install and compile the requirements.
  2. Make sure bitcoind is running in testnet mode, and has the latest blocks.
  3. Get some test bitcoins, such as from TPs' testnet faucet.
  4. Run daemon/lightningd.
  5. Run daemon/lightning-cli getinfo to check it's working.
  6. Find a node using daemon/lightning-cli getnodes (this will populate over time).
  7. Create a new connection to the node using contrib/lightning-open-channel ADDRESS PORT AMOUNT where AMOUNT is in BTC (.04294967 is the maximum possible). If successful, this will return only once a block has been mined with the funding transaction in it.
  8. You can create more channels if you wish.
  9. You can accept payment using daemon/lightning-cli invoice MILLISATOSHI LABEL; it will give you a payment hash to give to the payer.
  10. You can send payments using contrib/lightning-pay DEST-ID MILLISATOSHI PAYMENT-HASH.

Final note: This is very much a testbed and work in progress; expect All The Things to change, all the time.

Welcome aboard!

Rusty.