Skip to content

Commit a49f6ce

Browse files
committed
Bump NodeWaiter version
1 parent 0a09a12 commit a49f6ce

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ RUN apt-get -y update && apt-get -y install git
6868

6969
WORKDIR /source
7070

71-
RUN git clone https://github.com/dgarage/NBXplorer && cd NBXplorer && git checkout v2.0.0.2
71+
RUN git clone https://github.com/dgarage/NBXplorer && cd NBXplorer && git checkout de6245f0c90a07a676a2df2531bc8e553150a558
7272

7373
# Cache some dependencies
7474
RUN cd NBXplorer/NBXplorer.NodeWaiter && dotnet restore && cd ..

linuxarm32v7.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ RUN apt-get -y update && apt-get -y install git
8585

8686
WORKDIR /source
8787

88-
RUN git clone https://github.com/dgarage/NBXplorer && cd NBXplorer && git checkout v2.0.0.2
88+
RUN git clone https://github.com/dgarage/NBXplorer && cd NBXplorer && git checkout de6245f0c90a07a676a2df2531bc8e553150a558
8989

9090
# Cache some dependencies
9191
RUN cd NBXplorer/NBXplorer.NodeWaiter && dotnet restore && cd ..

tools/docker-entrypoint.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ if [ "$CHAIN" == "ltc" ]; then
3939
fi
4040
fi
4141

42-
if [[ $LIGHTNINGD_EXPLORERURL && $NETWORK && $CHAIN ]]; then
43-
# We need to do that because clightning behave weird if it starts at same time as bitcoin core, or if the node is not synched
44-
echo "Waiting for the node to start and sync"
45-
dotnet /opt/NBXplorer.NodeWaiter/NBXplorer.NodeWaiter.dll --chains "$CHAIN" --network "$NETWORK" --explorerurl "$LIGHTNINGD_EXPLORERURL"
46-
echo "Node synched"
47-
fi
48-
4942
if [[ $TRACE_TOOLS == "true" ]]; then
5043
echo "Trace tools detected, installing sample.sh..."
5144
echo 0 > /proc/sys/kernel/kptr_restrict
@@ -95,5 +88,8 @@ if [ "$EXPOSE_TCP" == "true" ]; then
9588
socat "TCP4-listen:$LIGHTNINGD_RPC_PORT,fork,reuseaddr" "UNIX-CONNECT:$LIGHTNINGD_DATA/lightning-rpc" &
9689
fg %-
9790
else
98-
exec lightningd "$@"
91+
# NBXplorer.NodeWaiter.dll is a wrapper which wait the full node to be fully synced before starting c-lightning
92+
# it also correctly handle SIGINT and SIGTERM so this container can die properly if SIGKILL or SIGTERM is sent
93+
exec dotnet /opt/NBXplorer.NodeWaiter/NBXplorer.NodeWaiter.dll --chains "$CHAIN" --network "$NETWORK" --explorerurl "$LIGHTNINGD_EXPLORERURL" -- \
94+
lightningd "$@"
9995
fi

0 commit comments

Comments
 (0)