-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .env | ||
|
||
docker-compose exec -T lightningdcarol lightning-cli \ | ||
--lightning-dir=/lightningd \ | ||
"$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .env | ||
|
||
bin/b-cli sendtoaddress $(bin/ln-bob newaddress np2wkh | jq '.address' | tr -d '"') 1 | ||
bin/b-cli generate 1 | ||
LIGHTNINGDCAROL_NODEID=$(bin/ld-carol getinfo | jq '.id' | tr -d '"') | ||
bin/ln-bob connect $LIGHTNINGDCAROL_NODEID@$LIGHTNINGDCAROL_HOST:$LIGHTNINGDCAROL_PORT | ||
bin/ln-bob openchannel --node_key $LIGHTNINGDCAROL_NODEID --local_amt=10000000 --push_amt=5000000 --private | ||
bin/b-cli generate 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu:bionic-20190612 as builder | ||
|
||
RUN apt-get -qq update && apt-get install -y software-properties-common | ||
|
||
RUN apt-get install -y --fix-missing \ | ||
autoconf automake build-essential git libtool libgmp-dev \ | ||
libsqlite3-dev python python3 net-tools zlib1g-dev libsodium-dev \ | ||
libboost-all-dev libevent-dev | ||
|
||
WORKDIR /build | ||
|
||
RUN git clone -n https://github.com/ElementsProject/lightning.git . \ | ||
&& git checkout 43d5492619b00e42bd34492f8b9a837b6a03df65 \ | ||
&& ./configure \ | ||
&& make && make install | ||
|
||
FROM ubuntu:bionic-20190612 | ||
|
||
COPY --from=builder /usr/lib /usr/lib | ||
COPY --from=builder /usr/local/libexec /usr/local/libexec | ||
COPY --from=builder /usr/local/bin /usr/local/bin | ||
|
||
ADD ./lightning.conf /lightningd/lightning.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
daemon=0 |