Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Jan 22, 2025
1 parent 3b22104 commit e98aecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpc/batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (b *BatchEndpoints) GetBatch(batchNumber uint64) (*types.RPCBatch, error) {

if rpcBatch.IsClosed() && rpcBatch.LastL2BLockTimestamp() == 0 {
log.Infof("last L2 block timestamp is 0, cannot send sequence, %v, %v", rpcBatch.BatchNumber(), rpcBatch.String())
time.Sleep(10 * time.Hour)
time.Sleep(10 * time.Hour) //nolint:mnd
}

return rpcBatch, nil
Expand Down
4 changes: 2 additions & 2 deletions sequencesender/sequencesender.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (s *SequenceSender) batchRetrieval(ctx context.Context) error {

if rpcBatch.LastL2BLockTimestamp() == 0 {
s.logger.Error(fmt.Sprintf("last L2 block timestamp is 0, cannot send sequence, %v", rpcBatch.BatchNumber()))
time.Sleep(10 * time.Hour)
time.Sleep(10 * time.Hour) //nolint:mnd
}

// Process and decode the batch
Expand Down Expand Up @@ -351,7 +351,7 @@ func (s *SequenceSender) tryToSendSequence(ctx context.Context) {
s.logger.Infof("sending sequences to L1. From batch %d to batch %d", firstBatch.BatchNumber(), lastBatch.BatchNumber())
if lastBatch.LastL2BLockTimestamp() == 0 {
s.logger.Error(fmt.Sprintf("last L2 block timestamp is 0, cannot send sequence, %v", sequence.String()))
time.Sleep(10 * time.Hour)
time.Sleep(10 * time.Hour) //nolint:mnd
return
}

Expand Down

0 comments on commit e98aecd

Please sign in to comment.