Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
use checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp committed Apr 8, 2024
1 parent 8369b86 commit a6d978c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion driver/chain_syncer/chain_syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ func (s *L2ChainSyncer) needNewBeaconSyncTriggered() (uint64, bool, error) {
var blockID uint64
switch s.syncMode {
case downloader.SnapSync.String():
blockID = stateVars.B.NumBlocks
blockID, err = s.rpc.L2CheckPoint.BlockNumber(s.ctx)
if err != nil {
return 0, false, err
}
case downloader.FullSync.String():
blockID = stateVars.B.LastVerifiedBlockId
default:
Expand Down

0 comments on commit a6d978c

Please sign in to comment.