Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Nov 7, 2024
1 parent 2debf16 commit 47c85c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sequencesender/sequencesender.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func (s *SequenceSender) batchRetrieval(ctx context.Context) error {
default:
// Try to retrieve batch from RPC
rpcBatch, err := s.rpcClient.GetBatch(currentBatchNumber)
log.Infof("zjg, rpcClient batch: %v, l2 data len:%v, accInputHash:%v,lastL2BlockTimestamp:%v", rpcBatch.BatchNumber(), len(rpcBatch.L2Data()), rpcBatch.AccInputHash(), rpcBatch.LastL2BLockTimestamp())
if err != nil {
if errors.Is(err, ethtxmanager.ErrNotFound) {
s.logger.Infof("batch %d not found in RPC", currentBatchNumber)
Expand Down Expand Up @@ -212,7 +213,6 @@ func (s *SequenceSender) populateSequenceData(rpcBatch *types.RPCBatch, batchNum
s.logger.Errorf("Failed to decode batch data for batch %d, err: %v", batchNumber, err)
return err
}

if len(batchRaw.Blocks) > 0 {
rpcBatch.SetL1InfoTreeIndex(batchRaw.Blocks[len(batchRaw.Blocks)-1].IndexL1InfoTree)
}
Expand Down
2 changes: 1 addition & 1 deletion sequencesender/txbuilder/banana_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func calculateMaxL1InfoTreeIndexInsideL2Data(l2data []byte) (uint32, error) {
}
maxIndex := uint32(0)
for _, block := range batchRawV2.Blocks {
log.Infof("zjg,block:%v, IndexL1InfoTree: %v", block.BlockNumber, block.IndexL1InfoTree)
log.Infof("zjg,block:%v, IndexL1InfoTree: %v, DeltaTimestamp:%v", block.BlockNumber, block.IndexL1InfoTree, block.DeltaTimestamp)
if block.IndexL1InfoTree > maxIndex {
maxIndex = block.IndexL1InfoTree
}
Expand Down

0 comments on commit 47c85c0

Please sign in to comment.