Skip to content

Commit 1467584

Browse files
author
Roberto Bayardo
authored
log txhash with tx publishing log messages (ethereum-optimism#10771)
1 parent 6e9dca3 commit 1467584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

op-service/txmgr/txmgr.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ func (m *SimpleTxManager) sendTx(ctx context.Context, tx *types.Transaction) (*t
459459
func (m *SimpleTxManager) publishTx(ctx context.Context, tx *types.Transaction, sendState *SendState, bumpFeesImmediately bool) (*types.Transaction, bool) {
460460
l := m.txLogger(tx, true)
461461

462-
l.Info("Publishing transaction")
462+
l.Info("Publishing transaction", "tx", tx.Hash())
463463

464464
for {
465465
// if the tx manager closed, give up without bumping fees or retrying
@@ -493,7 +493,7 @@ func (m *SimpleTxManager) publishTx(ctx context.Context, tx *types.Transaction,
493493

494494
if err == nil {
495495
m.metr.TxPublished("")
496-
l.Info("Transaction successfully published")
496+
l.Info("Transaction successfully published", "tx", tx.Hash())
497497
return tx, true
498498
}
499499

0 commit comments

Comments
 (0)