Commit 14675847 authored by Roberto Bayardo's avatar Roberto Bayardo Committed by GitHub

log txhash with tx publishing log messages (#10771)

parent 6e9dca3d
...@@ -459,7 +459,7 @@ func (m *SimpleTxManager) sendTx(ctx context.Context, tx *types.Transaction) (*t ...@@ -459,7 +459,7 @@ func (m *SimpleTxManager) sendTx(ctx context.Context, tx *types.Transaction) (*t
func (m *SimpleTxManager) publishTx(ctx context.Context, tx *types.Transaction, sendState *SendState, bumpFeesImmediately bool) (*types.Transaction, bool) { func (m *SimpleTxManager) publishTx(ctx context.Context, tx *types.Transaction, sendState *SendState, bumpFeesImmediately bool) (*types.Transaction, bool) {
l := m.txLogger(tx, true) l := m.txLogger(tx, true)
l.Info("Publishing transaction") l.Info("Publishing transaction", "tx", tx.Hash())
for { for {
// if the tx manager closed, give up without bumping fees or retrying // 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, ...@@ -493,7 +493,7 @@ func (m *SimpleTxManager) publishTx(ctx context.Context, tx *types.Transaction,
if err == nil { if err == nil {
m.metr.TxPublished("") m.metr.TxPublished("")
l.Info("Transaction successfully published") l.Info("Transaction successfully published", "tx", tx.Hash())
return tx, true return tx, true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment