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 e8d68757f6 gossip: Tracking tx index in topology 8 years ago
bitcoin bitcoin: Add comparison between pubkeys 8 years ago
ccan ccan: update. 8 years ago
contrib contrib/lightning-pay: helper to make a payment. 8 years ago
daemon gossip: Tracking tx index in topology 8 years ago
doc doc: manpages for the various lightning RPC calls. 8 years ago
secp256k1 libsecp256k1: update. 9 years ago
test daemon/json, test/test_protocol: avoid gcc -O warnings. 8 years ago
wire trivial: Add `addresses` field to generate-wire.py 8 years ago
.gitignore check-bolt: check that comments in code match the specs. 9 years ago
.gitlab-ci.yml Add .gitlab-ci.yml 8 years ago
.gitmodules daemon/jsmn: Add submodule for jsmn. 9 years ago
HACKING.md controlled_time: remove 8 years ago
INSTALL.md Merge remote-tracking branch 'origin/pr/42' 8 years ago
LICENSE licensing: Make license explicit. 9 years ago
Makefile test: make generic driver for unit tests. 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 Remove trailing whitespace from source. 8 years ago
close_tx.c Use global secp256k1_ctx instead of passing it around. 8 years ago
close_tx.h Use global secp256k1_ctx instead of passing it around. 8 years ago
find_p2sh_out.c scripteq: simple helper for comparing scripts. 9 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 proto: Added nested_pkt 8 years ago
lightning.pb-c.h proto: Added nested_pkt 8 years ago
lightning.proto proto: Added nested_pkt 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 daemon: routing infrastructure. 9 years ago
permute_tx.c permute_tx: don't save permutation map. 8 years ago
permute_tx.h permute_tx: don't save permutation map. 8 years ago
protobuf_convert.c Use global secp256k1_ctx instead of passing it around. 8 years ago
protobuf_convert.h Use global secp256k1_ctx instead of passing it around. 8 years ago
remove_dust.h channel: remove htlcs array. 8 years ago
utils.c utils: add a global secp, fix wire to use it. 8 years ago
utils.h utils: add a global secp, fix wire to use it. 8 years ago
version.c getinfo: add version information 8 years ago
version.h getinfo: add version information 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.