Skip to content

Commit 49d3143

Browse files
committed
db-analyser: print rejected tx ids in --repro-mempool-and-forge
1 parent 126de8e commit 49d3143

File tree

1 file changed

+4
-1
lines changed
  • ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBAnalyser

1 file changed

+4
-1
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBAnalyser/Analysis.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,10 @@ reproMempoolForge numBlks env = do
811811
-- add this block's transactions to the mempool
812812
do
813813
results <- Mempool.addTxs mempool $ LedgerSupportsMempool.extractTxs blk'
814-
let rejs = [ rej | rej@Mempool.MempoolTxRejected{} <- results ]
814+
let rejs =
815+
[ (LedgerSupportsMempool.txId tx, rej)
816+
| rej@(Mempool.MempoolTxRejected tx _) <- results
817+
]
815818
unless (null rejs) $ do
816819
fail $ "Mempool rejected some of the on-chain txs: " <> show rejs
817820

0 commit comments

Comments
 (0)