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.
Rusty Russell
56b0f03c5a
|
8 years ago | |
---|---|---|
bitcoin | 8 years ago | |
ccan | 8 years ago | |
contrib | 8 years ago | |
daemon | 8 years ago | |
doc | 8 years ago | |
secp256k1 | 9 years ago | |
test | 8 years ago | |
.gitignore | 9 years ago | |
.gitmodules | 9 years ago | |
HACKING.md | 9 years ago | |
INSTALL.md | 8 years ago | |
LICENSE | 9 years ago | |
Makefile | 8 years ago | |
README.md | 8 years ago | |
TODO.md | 8 years ago | |
check-bolt.c | 8 years ago | |
close_tx.c | 8 years ago | |
close_tx.h | 9 years ago | |
find_p2sh_out.c | 9 years ago | |
find_p2sh_out.h | 9 years ago | |
irc.c | 8 years ago | |
irc.h | 8 years ago | |
lightning.pb-c.c | 8 years ago | |
lightning.pb-c.h | 8 years ago | |
lightning.proto | 8 years ago | |
opt_bits.c | 10 years ago | |
opt_bits.h | 9 years ago | |
overflows.h | 9 years ago | |
permute_tx.c | 8 years ago | |
permute_tx.h | 8 years ago | |
protobuf_convert.c | 8 years ago | |
protobuf_convert.h | 8 years ago | |
remove_dust.h | 8 years ago | |
utils.c | 8 years ago | |
utils.h | 8 years ago | |
version.c | 8 years ago | |
version.h | 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:
- Install and compile the requirements.
- Make sure bitcoind is running in testnet mode, and has the latest blocks.
- Get some test bitcoins, such as from TPs' testnet faucet.
- Run
daemon/lightningd
. - Run
daemon/lightning-cli getinfo
to check it's working. - Find a node using
daemon/lightning-cli getnodes
(this will populate over time). - 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. - You can create more channels if you wish.
- You can accept payment using
daemon/lightning-cli invoice MILLISATOSHI LABEL
; it will give you a payment hash to give to the payer. - 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.