fix missing scantime

This commit is contained in:
rootzoll 2020-03-04 01:33:36 +01:00
parent 2af71fcf9a
commit 64e406a40a

View File

@ -221,7 +221,7 @@ if [ ${lndRunning} -eq 1 ]; then
# lnd scan progress
scanTimestamp=$(echo ${lndinfo} | jq -r '.best_header_timestamp')
nowTimestamp=$(date +%s)
if [ ${scanTimestamp} -gt ${nowTimestamp} ]; then
if [ ${#scanTimestamp} -gt 0 ] && [ ${scanTimestamp} -gt ${nowTimestamp} ]; then
scanTimestamp=${nowTimestamp}
fi
if [ ${#scanTimestamp} -gt 0 ]; then