wait for daemon to fully start
This commit is contained in:
parent
9eabd4ad0a
commit
b970af7b7d
1 changed files with 2 additions and 2 deletions
|
@ -318,8 +318,8 @@ func (s *Sync) waitForDaemonStart() error {
|
||||||
case <-s.grp.Ch():
|
case <-s.grp.Ch():
|
||||||
return errors.Err("interrupted during daemon startup")
|
return errors.Err("interrupted during daemon startup")
|
||||||
default:
|
default:
|
||||||
_, err := s.daemon.WalletBalance()
|
s, err := s.daemon.Status()
|
||||||
if err == nil {
|
if err == nil && s.StartupStatus.Wallet {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
|
|
Loading…
Reference in a new issue