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:
commit
6840a842af
@ -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}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user