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 e0754a7 commit 16a6ebd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sequencesender/txbuilder/banana_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (t *TxBuilderBananaBase) GetCounterL1InfoRoot(ctx context.Context, highestL
info, err := t.l1InfoTree.GetLatestInfoUntilBlock(ctx, header.Number.Uint64())
if err == nil {
resL1InfoCounter = info.L1InfoTreeIndex + 1
log.Infof("zjg, GetCounterL1InfoRoot--1: %v", resL1InfoCounter)
}
if errors.Is(err, l1infotreesync.ErrNotFound) {
// There are no L1 Info tree leaves yet, so we can try to use L1InfoRootMap event
Expand All @@ -107,6 +108,7 @@ func (t *TxBuilderBananaBase) GetCounterL1InfoRoot(ctx context.Context, highestL
}
// We use this leaf as first one
resL1InfoCounter = l1infotreeInitial.LeafCount
log.Infof("zjg, GetCounterL1InfoRoot--2: %v", resL1InfoCounter)
} else if err != nil {
return 0, fmt.Errorf("error calling GetLatestInfoUntilBlock with block num %d: %w", header.Number.Uint64(), err)
}
Expand All @@ -116,7 +118,7 @@ func (t *TxBuilderBananaBase) GetCounterL1InfoRoot(ctx context.Context, highestL
return resL1InfoCounter, nil
}
if resL1InfoCounter > highestL1IndexInBatch {
log.Infof("zjg, GetCounterL1InfoRoot, resL1InfoCounter > highestL1IndexInBatch:%v, %v", resL1InfoCounter, highestL1IndexInBatch)
log.Infof("zjg, GetCounterL1InfoRoot--3, resL1InfoCounter > highestL1IndexInBatch:%v, %v", resL1InfoCounter, highestL1IndexInBatch)
return resL1InfoCounter, nil
}

Expand Down

0 comments on commit 16a6ebd

Please sign in to comment.