2
0
mirror of https://github.com/lnbook/lnbook synced 2024-11-18 21:28:03 +00:00

Merge pull request #640 from keblek/keblek-patch-1

Bump c-lightning to 9.3
This commit is contained in:
Andreas M. Antonopoulos 2021-03-23 10:33:53 -06:00 committed by GitHub
commit 6840a842af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ RUN apt update && apt install -yqq \
software-properties-common software-properties-common
# c-lightning # c-lightning
ENV C_LIGHTNING_VER 0.9.2~0~ubuntu18.04.1 ENV C_LIGHTNING_VER 0.9.3~20210120202101201901~ubuntu20.04.1
RUN add-apt-repository -u ppa:lightningnetwork/ppa RUN add-apt-repository -u ppa:lightningnetwork/ppa
RUN apt-get install -yqq \ RUN apt-get install -yqq \
lightningd=${C_LIGHTNING_VER} lightningd=${C_LIGHTNING_VER}

View File

@ -1,4 +1,4 @@
alias lightning-cli="lightning-cli --network regtest --lightning-dir=/lightningd" alias lightning-cli="lightning-cli --lightning-dir=/lightningd"
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion

View File

@ -6,7 +6,7 @@ source /usr/local/bin/wait-for-bitcoind.sh
echo Starting c-lightning... echo Starting c-lightning...
lightningd --lightning-dir=/lightningd --daemon lightningd --lightning-dir=/lightningd --daemon
until lightning-cli --lightning-dir=/lightningd --network regtest getinfo > /dev/null 2>&1 until lightning-cli --lightning-dir=/lightningd getinfo > /dev/null 2>&1
do do
sleep 1 sleep 1
done done

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -Eeuo pipefail set -Eeuo pipefail
# Generate a new receiving address for LND wallet # Generate a new receiving address for c-lightning wallet
address=$(lightning-cli --lightning-dir=/lightningd --network regtest newaddr | jq .address) address=$(lightning-cli --lightning-dir=/lightningd --network regtest newaddr | jq .address)
# Ask Bitcoin Core to send 10 BTC to the address, using JSON-RPC call # Ask Bitcoin Core to send 10 BTC to the address, using JSON-RPC call