Skip to content

Commit 0c95c8e

Browse files
committed
squash! Support ntc23
1 parent 79fada8 commit 0c95c8e

File tree

1 file changed

+15
-10
lines changed
  • ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus

1 file changed

+15
-10
lines changed

ouroboros-consensus-diffusion/src/ouroboros-consensus-diffusion/Ouroboros/Consensus/NodeKernel.hs

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -926,16 +926,21 @@ getMempoolWriter mempool =
926926
Inbound.TxSubmissionMempoolWriter
927927
{ Inbound.txId = txId
928928
, mempoolAddTxs = \txs ->
929-
bimap (map (\case
930-
MempoolTxAdded tx -> txId (txForgetValidated tx)
931-
MempoolTxRejected {} -> error "impossible happened"
932-
))
933-
(map (\case
934-
MempoolTxRejected tx _reason -> (txId tx, ())
935-
MempoolTxAdded {} -> error "impossible happened"
936-
))
937-
. List.partition isMempoolTxAdded
938-
<$> addTxs mempool txs
929+
bimap
930+
( map
931+
( \case
932+
MempoolTxAdded tx -> txId (txForgetValidated tx)
933+
MempoolTxRejected{} -> error "impossible happened"
934+
)
935+
)
936+
( map
937+
( \case
938+
MempoolTxRejected tx _reason -> (txId tx, ())
939+
MempoolTxAdded{} -> error "impossible happened"
940+
)
941+
)
942+
. List.partition isMempoolTxAdded
943+
<$> addTxs mempool txs
939944
}
940945

941946
{-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)