mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-02 08:58:15 +02:00
make chain sync check more robust
This commit is contained in:
parent
85e13de75f
commit
c158461ddd
@ -10,7 +10,7 @@ chain=$2
|
||||
# check if chain is in sync
|
||||
cmdChainInSync="lncli --chain=${network} --network=${chain}net getinfo | grep '"synced_to_chain": true' -c"
|
||||
chainInSync=${cmdChainInSync}
|
||||
while [ $chainInSync -eq 0 ]; do
|
||||
while [ "${chainInSync}" == "0" ]; do
|
||||
dialog --title "Fail: not in sync" \
|
||||
--ok-label "Try now" \
|
||||
--cancel-label "Give up" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user