File tree 2 files changed +3
-0
lines changed
ouroboros-network/src/Ouroboros/Network/TxSubmission/Inbound
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,7 @@ withPeer tracer
235
235
inflightTxs' = foldl' purgeInflightTxs inflightTxs requestedTxsInflight
236
236
inflightTxsSize' = inflightTxsSize - requestedTxsInflightSize
237
237
238
+ -- TODO: describe why we need to add `toMempoolTxs` to `limboTxs`.
238
239
limboTxs' =
239
240
foldl' (flip $ Map. update
240
241
\ cnt -> if cnt > 1
Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ acknowledgeTxIds
145
145
, 0
146
146
, TxsToMempool []
147
147
, RefCountDiff Map. empty
148
+ -- Q: why we don't return `toMempoolTxs'` in this case?
148
149
, ps
149
150
)
150
151
where
@@ -241,6 +242,7 @@ tickTimedTxs now st@SharedTxState{ timedTxs
241
242
, bufferedTxs } =
242
243
let (expiredTxs, timedTxs') = Map. split now timedTxs
243
244
expiredTxs' = -- Map.split doesn't include the `now` entry in any map
245
+ -- TODO: there must be a better way.
244
246
case Map. lookup now timedTxs of
245
247
Just txids -> Map. insert now txids expiredTxs
246
248
Nothing -> expiredTxs
You can’t perform that action at this time.
0 commit comments