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():
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue