You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Christian Decker c44836ee2f sphinx: Use test vector hop_data 8 years ago
bitcoin Makefiles: fix from-scratch parallel build. 8 years ago
ccan ccan: update to get close option to io/fdpass. 8 years ago
contrib contrib/pylightning: allow getpeer with log level. 8 years ago
daemon test_lightningd.py: helper to sync blockheight. 8 years ago
doc doc: Adding compiled manpage 8 years ago
libsodium@fce6852d64 libsodium: add as submodule. 8 years ago
libwally-core libwally: Re-adding missing gen_context file 8 years ago
lightningd sphinx: Parameterizing the HMAC size 8 years ago
secp256k1 libsecp256k1: update. 9 years ago
test sphinx: Use test vector hop_data 8 years ago
tests channel: support HTLC forwarding. 8 years ago
tools travis: Simplified build script 8 years ago
wire lightningd: check amt_to_forward and outgoing_cltv_value 8 years ago
.gitignore gitignore: Added channeld to ignore list. 8 years ago
.gitlab-ci.yml Add .gitlab-ci.yml 8 years ago
.gitmodules libsodium: add as submodule. 8 years ago
.travis.yml travis: Simplified build script 8 years ago
HACKING.md controlled_time: remove 8 years ago
INSTALL.md INSTALL.md: Add 'install' to apt command examples. 8 years ago
LICENSE licensing: Make license explicit. 9 years ago
Makefile tests/test_lightningd.py: incorporate everything from old test-basic shell test. 8 years ago
README.md README.md: add "upgrade" instructions and add port config for public nodes. 8 years ago
TODO.md TODO: remove to-dones. 8 years ago
check-bolt.c check-bolt: use new BOLTs. 8 years ago
close_tx.c permute_tx: reintroduce permute map. 8 years ago
close_tx.h Use global secp256k1_ctx instead of passing it around. 8 years ago
find_p2sh_out.c struct bitcoin_tx: remove explicit lengths, use tal_len()/tal_count() 8 years ago
find_p2sh_out.h Remove unused script functions now we use witness. 9 years ago
irc.c Merge remote-tracking branch 'origin/pr/44' 8 years ago
irc.h Merge remote-tracking branch 'origin/pr/44' 8 years ago
lightning.pb-c.c bitcoin/preimage: struct preimage. 8 years ago
lightning.pb-c.h bitcoin/preimage: struct preimage. 8 years ago
lightning.proto bitcoin/preimage: struct preimage. 8 years ago
opt_bits.c opt_bits: parsing routines for 'bits' == 100 satoshi. 10 years ago
opt_bits.h header cleanup: sort include lines into alpha order, after config.h 9 years ago
overflows.h channel: support HTLC forwarding. 8 years ago
permute_tx.c permute_tx: generic pointer map. 8 years ago
permute_tx.h permute_tx: generic pointer map. 8 years ago
protobuf_convert.c bitcoin/preimage: struct preimage. 8 years ago
protobuf_convert.h bitcoin/preimage: struct preimage. 8 years ago
remove_dust.h channel: remove htlcs array. 8 years ago
type_to_string.c type_to_string: move formatting to appropriate files. 8 years ago
type_to_string.h Update to new spec: differentiate channel_id and short_channel_id. 8 years ago
utils.c utils: add tal_hex() helper. 8 years ago
utils.h utils: add tal_hex() helper. 8 years ago
version.c getinfo: add version information 8 years ago
version.h options: --help and --version are early args. 8 years ago

README.md

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. If you're running a previous version, you'll need to shut it down (maybe close channels first) and delete the $HOME/.lightning directory.
  2. Install and compile the requirements.
  3. Make sure bitcoind is running in testnet mode, and has the latest blocks.
  4. Get some test bitcoins, such as from TPs' testnet faucet.
  5. If you want others to connect to your lightningd, create $HOME/.lightning/config and put port=8334 in it (or any other port).
  6. Run daemon/lightningd.
  7. Run daemon/lightning-cli getinfo to check it's working.
  8. Find a node using daemon/lightning-cli getnodes (this will populate over time).
  9. 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.
  10. You can create more channels if you wish.
  11. You can accept payment using daemon/lightning-cli invoice MILLISATOSHI LABEL; it will give you a payment hash to give to the payer.
  12. 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.