File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ RUN apt-get -y update && apt-get -y install git
6868
6969WORKDIR /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
7474RUN cd NBXplorer/NBXplorer.NodeWaiter && dotnet restore && cd ..
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ RUN apt-get -y update && apt-get -y install git
8585
8686WORKDIR /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
9191RUN cd NBXplorer/NBXplorer.NodeWaiter && dotnet restore && cd ..
Original file line number Diff line number Diff line change @@ -39,13 +39,6 @@ if [ "$CHAIN" == "ltc" ]; then
3939 fi
4040fi
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-
4942if [[ $TRACE_TOOLS == " true" ]]; then
5043echo " Trace tools detected, installing sample.sh..."
5144echo 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 %-
9790else
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 " $@ "
9995fi
You can’t perform that action at this time.
0 commit comments