mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
#1438 change checking if electrum ready
This commit is contained in:
parent
8494d195ec
commit
72c80aadd4
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ if [ "$1" = "status" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if initial sync was done, by setting a file as once electrs is the first time responding on port 50001
|
# check if initial sync was done, by setting a file as once electrs is the first time responding on port 50001
|
||||||
electrumResponding=$(echo exit | telnet 127.0.0.1 50001 2>/dev/null | grep -c "Connected to")
|
electrumResponding=$(echo '{"jsonrpc":"2.0","method":"server.ping","params":[],"id":"electrs-check"}' | netcat -w 2 127.0.0.1 50001 | grep -c "result")
|
||||||
if [ ${electrumResponding} -gt 1 ]; then
|
if [ ${electrumResponding} -gt 1 ]; then
|
||||||
electrumResponding=1
|
electrumResponding=1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue