#985 waiting for ready flag before LND check

This commit is contained in:
rootzoll 2020-01-21 11:24:24 +01:00
parent 882d571b56
commit 789d248a77
2 changed files with 14 additions and 0 deletions

View file

@ -238,9 +238,14 @@ class AppWindow(QMainWindow):
flag.set()
def update_status_lnd(self):
if IS_WIN32_ENV:
return
if self.rb_info.status != "ready":
log.debug("skipping updating status_lnd --> no ready signal in info file")
return
# log.debug("update_status_lnd due: {}".format(self.status_lnd_due))
if self.status_lnd_due <= self.uptime:
log.debug("updating status_lnd")
@ -256,9 +261,14 @@ class AppWindow(QMainWindow):
self.status_lnd_due = self.uptime + self.status_lnd_interval
def update_status_lnd_channels(self):
if IS_WIN32_ENV:
return
if self.rb_info.status != "ready":
log.debug("skipping updating status_lnd --> no ready signal in info file")
return
# log.debug("update_status_lnd_channel due: {}".format(self.status_lnd_channel_due))
if self.status_lnd_channel_due <= self.uptime:
log.debug("updating status_lnd_channels")

View file

@ -516,5 +516,9 @@ if [ "${baseImage}" = "raspbian" ] ; then
fi
fi
# mark that node is ready now
sed -i "s/^state=.*/state=ready/g" ${infoFile}
sed -i "s/^message=.*/message='Node Running'/g" ${infoFile}
echo "DONE BOOTSTRAP" >> $logFile
exit 0