|
1 | 1 | {-# LANGUAGE BangPatterns #-} |
2 | | -{-# LANGUAGE CPP #-} |
3 | 2 | {-# LANGUAGE DataKinds #-} |
4 | 3 | {-# LANGUAGE DerivingStrategies #-} |
5 | 4 | {-# LANGUAGE FlexibleContexts #-} |
|
12 | 11 | {-# LANGUAGE TypeApplications #-} |
13 | 12 | {-# LANGUAGE TypeOperators #-} |
14 | 13 |
|
15 | | -#if __GLASGOW_HASKELL__ >= 910 |
16 | | -{-# OPTIONS_GHC -Wno-x-ord-preserving-coercions #-} |
17 | | -#endif |
18 | | - |
19 | 14 | module Cardano.Api.LedgerState |
20 | 15 | ( -- * Initialization / Accumulation |
21 | 16 | envSecurityParam |
@@ -213,7 +208,6 @@ import Ouroboros.Consensus.Shelley.HFEras qualified as Shelley |
213 | 208 | import Ouroboros.Consensus.Shelley.Ledger.Block qualified as Shelley |
214 | 209 | import Ouroboros.Consensus.Shelley.Ledger.Ledger qualified as Shelley |
215 | 210 | import Ouroboros.Consensus.TypeFamilyWrappers (WrapLedgerEvent (WrapLedgerEvent)) |
216 | | -import Ouroboros.Consensus.Util (coerceMapKeys) |
217 | 211 | import Ouroboros.Network.Block (blockNo) |
218 | 212 | import Ouroboros.Network.Block qualified |
219 | 213 | import Ouroboros.Network.Protocol.ChainSync.Client qualified as CS |
@@ -2295,7 +2289,7 @@ getLedgerTablesUTxOValues sbe tbs = |
2295 | 2289 | -> Map TxIn (TxOut CtxUTxO era) |
2296 | 2290 | ejectTables idx = |
2297 | 2291 | let Consensus.LedgerTables (Ledger.ValuesMK values) = HFC.ejectLedgerTables idx tbs |
2298 | | - in Map.mapKeys fromShelleyTxIn $ coerceMapKeys $ Map.map (fromShelleyTxOut sbe) values |
| 2292 | + in Map.mapKeys (fromShelleyTxIn . Shelley.getOriginalTxIn) $ Map.map (fromShelleyTxOut sbe) values |
2299 | 2293 | in |
2300 | 2294 | case sbe of |
2301 | 2295 | ShelleyBasedEraShelley -> ejectTables (IS IZ) |
|
0 commit comments