Skip to content

Commit

Permalink
Add comment on a corner case in mkTransactionInfo
Browse files Browse the repository at this point in the history
… for future reference.
  • Loading branch information
HeinrichApfelmus authored and erikd committed Jan 31, 2023
1 parent 9896738 commit 16a88cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wallet/src/Cardano/Wallet/DB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,10 @@ mkTransactionInfo ti decorator tip = \case
-> make WTxMeta.Expired tx meta
( TxStatusMeta ( Subm.InLedger _ _slot tx) meta)
-> make WTxMeta.InLedger tx meta
-- Note: `meta` will contain the slot and block height
-- when the transaction was submitted,
-- not the slot or block height when the transaction
-- was accepted into the ledger.
_ -> pure Nothing
where
make s tx meta = do
Expand Down

0 comments on commit 16a88cf

Please sign in to comment.