Skip to content

Commit b01aade

Browse files
author
colinlyguo
committed
add bundle index
1 parent 5993aa5 commit b01aade

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

rollup/internal/controller/relayer/l2_relayer.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ func (r *Layer2Relayer) ProcessPendingBundles() {
529529
}
530530

531531
case types.ProvingTaskVerified:
532-
log.Info("Start to roll up zk proof", "bundle hash", bundle.Hash)
532+
log.Info("Start to roll up zk proof", "index", bundle.Index, "bundle hash", bundle.Hash)
533533
r.metrics.rollupL2RelayerProcessPendingBundlesFinalizedTotal.Inc()
534534
if err := r.finalizeBundle(bundle, true); err != nil {
535535
log.Error("failed to finalize bundle with proof", "bundle index", bundle.Index, "start batch index", bundle.StartBatchIndex, "end batch index", bundle.EndBatchIndex, "err", err)
@@ -638,12 +638,12 @@ func (r *Layer2Relayer) finalizeBundle(bundle *orm.Bundle, withProof bool) error
638638
// Updating rollup status in database.
639639
err = r.db.Transaction(func(dbTX *gorm.DB) error {
640640
if err = r.batchOrm.UpdateFinalizeTxHashAndRollupStatusByBundleHash(r.ctx, bundle.Hash, txHash.String(), types.RollupFinalizing, dbTX); err != nil {
641-
log.Warn("UpdateFinalizeTxHashAndRollupStatusByBundleHash failed", "bundle hash", bundle.Hash, "tx hash", txHash.String(), "err", err)
641+
log.Warn("UpdateFinalizeTxHashAndRollupStatusByBundleHash failed", "index", bundle.Index, "bundle hash", bundle.Hash, "tx hash", txHash.String(), "err", err)
642642
return err
643643
}
644644

645645
if err = r.bundleOrm.UpdateFinalizeTxHashAndRollupStatus(r.ctx, bundle.Hash, txHash.String(), types.RollupFinalizing, dbTX); err != nil {
646-
log.Warn("UpdateFinalizeTxHashAndRollupStatus failed", "bundle hash", bundle.Hash, "tx hash", txHash.String(), "err", err)
646+
log.Warn("UpdateFinalizeTxHashAndRollupStatus failed", "index", bundle.Index, "bundle hash", bundle.Hash, "tx hash", txHash.String(), "err", err)
647647
return err
648648
}
649649

0 commit comments

Comments
 (0)