mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
better detect chain not in sync #409
This commit is contained in:
parent
a376360462
commit
3e9d3388c2
1 changed files with 2 additions and 2 deletions
|
@ -23,8 +23,8 @@ echo ""
|
||||||
echo "RESULT:"
|
echo "RESULT:"
|
||||||
|
|
||||||
# PRECHECK) check if chain is in sync
|
# PRECHECK) check if chain is in sync
|
||||||
chainInSync=$(lncli --chain=${network} --network=${chain}net getinfo | grep '"synced_to_chain": true' -c)
|
chainOutSync=$(lncli --chain=${network} --network=${chain}net getinfo | grep '"synced_to_chain": false' -c)
|
||||||
if [ ${chainInSync} -eq 0 ]; then
|
if [ ${chainOutSync} -eq 1 ]; then
|
||||||
command=""
|
command=""
|
||||||
result="FAIL PRECHECK - lncli getinfo shows 'synced_to_chain': false - wait until chain is sync "
|
result="FAIL PRECHECK - lncli getinfo shows 'synced_to_chain': false - wait until chain is sync "
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue