Skip to content

Commit

Permalink
remove l1Synced
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 committed Jan 8, 2025
1 parent fc7f2cd commit 8fef0c1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions claimtxman/claimtxman.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ type ClaimTxManager struct {
auth *bind.TransactOpts
rollupID uint32
l2Synced bool
l1Synced bool
nonceCache *NonceCache
monitorTxs types.TxMonitorer
}
Expand Down Expand Up @@ -109,12 +108,8 @@ func (tm *ClaimTxManager) Start() {
log.Info("NetworkID synced: ", netID)
tm.l2Synced = true
}
if netID == 0 && !tm.l1Synced {
log.Info("L1 synced: ", netID)
tm.l1Synced = true
}
case ger = <-tm.chExitRootEvent:
if tm.l2Synced && tm.l1Synced {
if tm.l2Synced {
log.Debugf("RollupID: %d UpdateDepositsStatus for ger: %s", tm.rollupID, ger.GlobalExitRoot.String())
if tm.cfg.GroupingClaims.Enabled {
log.Debugf("rollupID: %d, Ger value updated and ready to be processed...", tm.rollupID)
Expand All @@ -130,7 +125,7 @@ func (tm *ClaimTxManager) Start() {
log.Infof("Waiting for networkID %d to be synced before processing deposits", tm.l2NetworkID)
}
case <-compressorTicker.C:
if tm.l2Synced && tm.l1Synced && tm.cfg.GroupingClaims.Enabled && ger.GlobalExitRoot != latestProcessedGer {
if tm.l2Synced && tm.cfg.GroupingClaims.Enabled && ger.GlobalExitRoot != latestProcessedGer {
log.Infof("RollupID: %d,Processing deposits for ger: %s", tm.rollupID, ger.GlobalExitRoot.String())
go func() {
err := tm.updateDepositsStatus(ger)
Expand Down

0 comments on commit 8fef0c1

Please sign in to comment.