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
068cdc825f
|
8 years ago | |
---|---|---|
bitcoin | 8 years ago | |
ccan | 8 years ago | |
contrib | 8 years ago | |
daemon | 8 years ago | |
doc | 8 years ago | |
libsodium@fce6852d64 | 8 years ago | |
lightningd | 8 years ago | |
secp256k1 | 9 years ago | |
test | 8 years ago | |
tests | 8 years ago | |
tools | 8 years ago | |
wire | 8 years ago | |
.gitignore | 8 years ago | |
.gitlab-ci.yml | 8 years ago | |
.gitmodules | 8 years ago | |
HACKING.md | 8 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 | 8 years ago | |
find_p2sh_out.c | 8 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 | |
status.c | 8 years ago | |
status.h | 8 years ago | |
type_to_string.c | 8 years ago | |
type_to_string.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:
- If you're running a previous version, you'll need to shut it down (maybe close channels first) and delete the $HOME/.lightning directory.
- 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.
- If you want others to connect to your lightningd, create $HOME/.lightning/config and put
port=8334
in it (or any other port). - 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.