From 51e19e097ca09113dcfc13d939476fcfebc23ddc Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Mon, 20 Aug 2018 15:26:52 -0400 Subject: [PATCH] wait for daemon to fully start --- ytsync.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ytsync.go b/ytsync.go index b01e974..e32f7c9 100644 --- a/ytsync.go +++ b/ytsync.go @@ -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)