Skip to content

Commit 3dd0355

Browse files
feat(tx_pool_throughput_analysis): log transaction hashes for debugging and future identification of sent transactions
1 parent 73694ea commit 3dd0355

File tree

1 file changed

+4
-0
lines changed
  • pkg/coordinator/tasks/tx_pool_throughput_analysis

1 file changed

+4
-0
lines changed

pkg/coordinator/tasks/tx_pool_throughput_analysis/task.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ func (t *Task) Execute(ctx context.Context) error {
203203
t.ctx.SetResult(types.TaskResultFailure)
204204
return nil
205205
}
206+
// todo: creare una funzione che legge l'hash della tx e capisce se e una di quelle che ho inviato io, inizialmente faccio log per testare
207+
for _, tx := range *result.txs {
208+
t.logger.Infof("Tx hash: %s", tx.Hash().Hex())
209+
}
206210
gotTx += len(*result.txs)
207211
case <-time.After(180 * time.Second):
208212
t.logger.Warnf("Timeout after 180 seconds while reading transaction messages. Re-sending transactions...")

0 commit comments

Comments
 (0)