Skip to content

Commit b67becc

Browse files
committed
tx-submission: latexTxs - added a comment
1 parent f956de8 commit b67becc

File tree

1 file changed

+3
-0
lines changed
  • ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/V2

1 file changed

+3
-0
lines changed

ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound/V2/State.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ acknowledgeTxIds
124124
toMempoolTxs' = toMempoolTxs <> txsToMempoolMap
125125

126126
(downloadedTxs', ackedDownloadedTxs) = Map.partitionWithKey (\txid _ -> txid `Set.member` liveSet) downloadedTxs
127+
-- latexTxs: transactions which were downloaded by another peer before we
128+
-- downloaded them; it relies on that `txToMempool` filters out
129+
-- `bufferedTxs`.
127130
lateTxs = Map.filterWithKey (\txid _ -> txid `Map.notMember` txsToMempoolMap) ackedDownloadedTxs
128131
score' = score + fromIntegral (Map.size lateTxs)
129132

0 commit comments

Comments
 (0)