Skip to content

Commit

Permalink
fix misleading logs (#580)
Browse files Browse the repository at this point in the history
Co-authored-by: vincent <vincent.ch.cn@gmail.com>
  • Loading branch information
WorldDogs and chengwenxi authored Oct 17, 2024
1 parent 96e65b5 commit 88fed66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tx-submitter/services/rollup.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ func (r *Rollup) rollup() error {
}
gas, err := r.EstimateGas(r.WalletAddr(), r.rollupAddr, calldata, gasFeeCap, tip)
if err != nil {
log.Warn("estimate gas error", "err", err)
log.Warn("estimate gas failed", "err", err)
// have failed tx & estimate err -> no rough estimate
if r.pendingTxs.HaveFailed() {
log.Warn("estimate gas err, wait failed tx fixed",
Expand All @@ -652,7 +652,8 @@ func (r *Rollup) rollup() error {
gas = r.RoughRollupGasEstimate(msgcnt)
log.Info("rough estimate rollup tx gas", "gas", gas, "msgcnt", msgcnt)
} else {
return fmt.Errorf("estimate gas error:%v", err)
log.Warn("no rough estimate gas, return")
return nil
}
}

Expand Down

0 comments on commit 88fed66

Please sign in to comment.