diff --git a/rollup/internal/controller/relayer/l2_relayer_test.go b/rollup/internal/controller/relayer/l2_relayer_test.go index 06684b79a1..84227440e5 100644 --- a/rollup/internal/controller/relayer/l2_relayer_test.go +++ b/rollup/internal/controller/relayer/l2_relayer_test.go @@ -439,7 +439,7 @@ func testGetBatchStatusByIndex(t *testing.T) { assert.NoError(t, err) cfg.L2Config.RelayerConfig.ChainMonitor.Enabled = true - relayer, err := NewLayer2Relayer(context.Background(), l2Cli, db, cfg.L2Config.RelayerConfig, false, nil) + relayer, err := NewLayer2Relayer(context.Background(), l2Cli, db, cfg.L2Config.RelayerConfig, false, false, nil) assert.NoError(t, err) assert.NotNil(t, relayer) diff --git a/rollup/internal/controller/sender/sender.go b/rollup/internal/controller/sender/sender.go index 0137030f9e..4d3d3c22ff 100644 --- a/rollup/internal/controller/sender/sender.go +++ b/rollup/internal/controller/sender/sender.go @@ -373,7 +373,7 @@ func (s *Sender) resubmitTransaction(tx *gethTypes.Transaction, baseFee uint64) txInfo["adjusted_gas_fee_cap"] = gasFeeCap.Uint64() } - log.Info("Transaction gas adjustment details", "txInfo", txInfo) + log.Info("Transaction gas adjustment details", "service", s.service, "name", s.name, "txInfo", txInfo) nonce := tx.Nonce() s.metrics.resubmitTransactionTotal.WithLabelValues(s.service, s.name).Inc() @@ -459,6 +459,8 @@ func (s *Sender) checkPendingTransaction() { } log.Info("resubmit transaction", + "service", s.service, + "name", s.name, "hash", tx.Hash().String(), "from", s.auth.From.String(), "nonce", tx.Nonce(), diff --git a/rollup/internal/controller/sender/sender_test.go b/rollup/internal/controller/sender/sender_test.go index 826e4f636d..5967d2f05c 100644 --- a/rollup/internal/controller/sender/sender_test.go +++ b/rollup/internal/controller/sender/sender_test.go @@ -329,7 +329,7 @@ func testResubmitTransactionWithRisingBaseFee(t *testing.T) { // bump the basefee by 10x baseFeePerGas *= 10 // resubmit and check that the gas fee has been adjusted accordingly - newTx, err := s.resubmitTransaction( tx, baseFeePerGas) + newTx, err := s.resubmitTransaction(tx, baseFeePerGas) assert.NoError(t, err) escalateMultipleNum := new(big.Int).SetUint64(s.config.EscalateMultipleNum)