Fix error in chain sync by height

This commit is contained in:
Martin Boehm 2018-03-28 12:09:05 +02:00
parent 2f4b48b3d6
commit bfb22c4f20

View File

@ -131,7 +131,7 @@ func (w *SyncWorker) resyncIndex(onNewBlock func(hash string)) error {
if header != nil {
glog.Info("resync: local is behind")
w.startHash = header.Next
w.startHeight = localBestHeight
w.startHeight = localBestHeight + 1
} else {
// If the local block is missing, we're indexing from the genesis block
// or from the start block specified by flags