Skip to content

Commit

Permalink
fix rollup/rollup_sync_service/rollup_sync_service.go
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop committed Dec 21, 2023
1 parent 67c4f90 commit e4c7c3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup/rollup_sync_service/rollup_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func (s *RollupSyncService) getLocalInfoForBatch(batchIndex uint64) (*rawdb.Fina
return nil, nil, s.ctx.Err()
}

localSyncedBlockHeight := s.bc.CurrentBlock().Number().Uint64()
localSyncedBlockHeight := s.bc.CurrentBlock().Number.Uint64()
if localSyncedBlockHeight >= endBlockNumber {
break // ready to proceed, exit retry loop
}
Expand All @@ -270,7 +270,7 @@ func (s *RollupSyncService) getLocalInfoForBatch(batchIndex uint64) (*rawdb.Fina
time.Sleep(defaultGetBlockInRangeRetryDelay)
}

localSyncedBlockHeight := s.bc.CurrentBlock().Number().Uint64()
localSyncedBlockHeight := s.bc.CurrentBlock().Number.Uint64()
if localSyncedBlockHeight < endBlockNumber {
return nil, nil, fmt.Errorf("local node is not synced up to the required block height: %v, local synced block height: %v", endBlockNumber, localSyncedBlockHeight)
}
Expand Down

0 comments on commit e4c7c3b

Please sign in to comment.