remove redisDB dependency #25

Merged
nikooo777 merged 12 commits from use_video_statuses into master 2018-08-20 13:56:26 +02:00
Showing only changes of commit 58c8e7f5a3 - Show all commits

View file

@ -153,15 +153,15 @@ func (s *Sync) waitForNewBlock() error {
return err return err
} }
for status.BlockchainStatus.Blocks == 0 || status.BlockchainStatus.BlocksBehind != 0 { for status.Wallet.Blocks == 0 || status.Wallet.BlocksBehind != 0 {
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
status, err = s.daemon.Status() status, err = s.daemon.Status()
if err != nil { if err != nil {
return err return err
} }
} }
currentBlock := status.BlockchainStatus.Blocks currentBlock := status.Wallet.Blocks
for i := 0; status.BlockchainStatus.Blocks <= currentBlock; i++ { for i := 0; status.Wallet.Blocks <= currentBlock; i++ {
if i%3 == 0 { if i%3 == 0 {
log.Printf("Waiting for new block (%d)...", currentBlock+1) log.Printf("Waiting for new block (%d)...", currentBlock+1)
} }