From 47c85c0fa72f39d8593e9cf26d387a9b38142129 Mon Sep 17 00:00:00 2001 From: jianguo Date: Thu, 7 Nov 2024 16:38:04 +0800 Subject: [PATCH] update --- sequencesender/sequencesender.go | 2 +- sequencesender/txbuilder/banana_types.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sequencesender/sequencesender.go b/sequencesender/sequencesender.go index 432b3777..947a484f 100644 --- a/sequencesender/sequencesender.go +++ b/sequencesender/sequencesender.go @@ -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) @@ -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) } diff --git a/sequencesender/txbuilder/banana_types.go b/sequencesender/txbuilder/banana_types.go index c336fa5c..4fe99b78 100644 --- a/sequencesender/txbuilder/banana_types.go +++ b/sequencesender/txbuilder/banana_types.go @@ -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 }