Skip to content

Commit

Permalink
feat(txpool): enhance logging for transaction replacement attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
afa7789 committed Nov 27, 2024
1 parent 5b84192 commit fbdcb04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zk/txpool/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ func (p *TxPool) addLocked(mt *metaTx, announcements *types.Announcements) Disca
if bytes.Equal(found.Tx.IDHash[:], mt.Tx.IDHash[:]) {
return NotSet
}
log.Info(fmt.Sprintf("Transaction %s was attempted"))
log.Info(fmt.Sprintf("Transaction %s was attempted to be replaced.", hex.EncodeToString(mt.Tx.IDHash[:])))
return NotReplaced
}

Expand Down

0 comments on commit fbdcb04

Please sign in to comment.