wait for daemon to fully start
This commit is contained in:
parent
5258f760a3
commit
51e19e097c
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…
Add table
Reference in a new issue