Skip to content

Commit 7b8ec92

Browse files
karknucoot
authored andcommitted
Send TraceTxSubmissionProcessed for the new TX submission
Send TraceTxSubmissionProcessed for the new TX submission protocol. Fix count for TraceTxSubmissionCollected, it should be number of TXs "collected", not number of TXs accepted by the mempool.
1 parent 2ee117b commit 7b8ec92

File tree

1 file changed

+8
-1
lines changed
  • ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound

1 file changed

+8
-1
lines changed

ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/Server.hs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,16 @@ txSubmissionInboundV2
7272
txidsAccepted <- mempoolAddTxs txs
7373
traceWith tracer $
7474
TraceTxInboundAddedToMempool txidsAccepted
75-
let !collected = length txidsAccepted
75+
let !collected = length txs
76+
let !accepted = length txidsAccepted
7677
traceWith tracer $
7778
TraceTxSubmissionCollected collected
79+
80+
traceWith tracer $ TraceTxSubmissionProcessed ProcessedTxCount {
81+
ptxcAccepted = accepted
82+
, ptxcRejected = collected - accepted
83+
}
84+
7885
-- TODO:
7986
-- We can update the state so that other `tx-submission` servers will
8087
-- not try to add these txs to the mempool.

0 commit comments

Comments
 (0)