wait for daemon to fully start

This commit is contained in:
Niko Storni 2018-08-20 15:26:52 -04:00
parent 5258f760a3
commit 51e19e097c

View file

@ -318,8 +318,8 @@ func (s *Sync) waitForDaemonStart() error {
case <-s.grp.Ch():
return errors.Err("interrupted during daemon startup")
default:
_, err := s.daemon.WalletBalance()
if err == nil {
s, err := s.daemon.Status()
if err == nil && s.StartupStatus.Wallet {
return nil
}
time.Sleep(5 * time.Second)