diff --git a/.gitignore b/.gitignore index 94e0baf48..7f272cdd6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ libsodium.la libwallycore.a libwallycore.la gen_* -daemon/lightning-cli +lightning-cli/lightning-cli tools/check-bolt coverage ccan/config.h diff --git a/Makefile b/Makefile index 9e71d9ac1..e36863bb0 100644 --- a/Makefile +++ b/Makefile @@ -189,6 +189,7 @@ include bitcoin/Makefile include wire/Makefile include wallet/Makefile include lightningd/Makefile +include cli/Makefile # Git doesn't maintain timestamps, so we only regen if git says we should. CHANGED_FROM_GIT = [ x"`git log $@ | head -n1`" != x"`git log $< | head -n1`" -o x"`git diff $<`" != x"" ] @@ -205,7 +206,7 @@ test-protocol: test/test_protocol check: test-protocol $(MAKE) pytest -pytest: daemon/lightning-cli lightningd-all +pytest: cli/lightning-cli lightningd-all PYTHONPATH=contrib/pylightning python3 tests/test_lightningd.py -f # Keep includes in alpha order. @@ -319,7 +320,7 @@ maintainer-clean: distclean @echo 'This command is intended for maintainers to use; it' @echo 'deletes files that may need special tools to rebuild.' -clean: daemon-clean wire-clean +clean: wire-clean $(MAKE) -C secp256k1/ clean || true $(RM) libsecp256k1.{a,la} $(RM) libsodium.{a,la} @@ -331,8 +332,6 @@ clean: daemon-clean wire-clean find . -name '*gcda' -delete find . -name '*gcno' -delete -include daemon/Makefile - update-mocks/%: % @set -e; BASE=/tmp/mocktmp.$$$$.`echo $* | tr / _`; trap "rm -f $$BASE.*" EXIT; \ START=`fgrep -n '/* AUTOGENERATED MOCKS START */' $< | cut -d: -f1`;\ diff --git a/README.md b/README.md index 627d470bf..07b0b4a22 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ First you need to transfer some funds to `lightningd` so that it can open a chan ``` # Returns an address
-daemon/lightning-cli newaddr +cli/lightning-cli newaddr # Returns a transaction id bitcoin-cli -testnet sendtoaddress
@@ -79,12 +79,12 @@ Once `lightningd` has funds, we can connect to a node and open a channel. Let's assume the remote node is accepting connections at `:` and has the node ID ``: ``` -daemon/lightning-cli connect -daemon/lightning-cli fundchannel +cli/lightning-cli connect +cli/lightning-cli fundchannel ``` This opens a connection and, on top of that connection, then opens a channel. -You can check the status of the channel using `daemon/lightning-cli getpeers`. +You can check the status of the channel using `cli/lightning-cli getpeers`. The funding transaction needs to confirm in order for the channel to be usable, so wait a few minutes, and once that is complete it `getpeers` should say that the status is in _Normal operation_. ### Receiving and receiving payments @@ -93,7 +93,7 @@ Payments in Lightning are invoice based. The recipient creates an invoice with the expected `` in millisatoshi and a `