Skip to content

Commit

Permalink
#21 node sync reset
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed Nov 20, 2018
1 parent d507244 commit bea6801
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ void Node::Processor::ReportProgress()
if (total >= done)
{
observer->OnSyncProgress(done, total);
if (total == done)
{
m_RequestedCount = m_DownloadedHeaders = m_DownloadedBlocks = 0;
}
}
}
}
Expand Down

0 comments on commit bea6801

Please sign in to comment.