Update synchronizer.Sync2 to Sync from legacy impl

This commit is contained in:
arnaucube
2021-02-25 16:52:07 +01:00
parent 83c256deda
commit 15fd3945dd
5 changed files with 15 additions and 15 deletions

View File

@@ -552,7 +552,7 @@ func (n *Node) handleReorg(ctx context.Context, stats *synchronizer.Stats, vars
// TODO(Edu): Consider keeping the `lastBlock` inside synchronizer so that we
// don't have to pass it around.
func (n *Node) syncLoopFn(ctx context.Context, lastBlock *common.Block) (*common.Block, time.Duration, error) {
blockData, discarded, err := n.sync.Sync2(ctx, lastBlock)
blockData, discarded, err := n.sync.Sync(ctx, lastBlock)
stats := n.sync.Stats()
if err != nil {
// case: error