Skip to content

Commit 19adf57

Browse files
teodanciugeo2a
authored andcommitted
FixMaxTxSizeUTxO,ExUnitsTooBigUTxO,TxRefScriptsSizeTooBiginstances
for DijkstraEra
1 parent 2e8ef2f commit 19adf57

File tree

1 file changed

+8
-7
lines changed
  • ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Ledger

1 file changed

+8
-7
lines changed

ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Ledger/Mempool.hs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ import Cardano.Ledger.Binary
7878
import qualified Cardano.Ledger.Conway.PParams as SL
7979
import qualified Cardano.Ledger.Conway.Rules as ConwayEra
8080
import qualified Cardano.Ledger.Conway.UTxO as SL
81+
import qualified Cardano.Ledger.Dijkstra.Rules as DijkstraEra
8182
import qualified Cardano.Ledger.Hashes as SL
8283
import qualified Cardano.Ledger.Shelley.API as SL
8384
import qualified Cardano.Ledger.Shelley.Rules as ShelleyEra
@@ -483,9 +484,9 @@ instance MaxTxSizeUTxO ConwayEra where
483484
instance MaxTxSizeUTxO DijkstraEra where
484485
maxTxSizeUTxO txSize txSizeLimit =
485486
SL.ApplyTxError . pure $
486-
ConwayEra.ConwayUtxowFailure $
487-
ConwayEra.UtxoFailure $
488-
ConwayEra.MaxTxSizeUTxO $
487+
DijkstraEra.DijkstraUtxowFailure $
488+
DijkstraEra.UtxoFailure $
489+
DijkstraEra.MaxTxSizeUTxO $
489490
L.Mismatch
490491
{ mismatchSupplied = txSize
491492
, mismatchExpected = txSizeLimit
@@ -620,9 +621,9 @@ instance ExUnitsTooBigUTxO ConwayEra where
620621
instance ExUnitsTooBigUTxO DijkstraEra where
621622
exUnitsTooBigUTxO txsz limit =
622623
SL.ApplyTxError . pure $
623-
ConwayEra.ConwayUtxowFailure $
624-
ConwayEra.UtxoFailure $
625-
ConwayEra.ExUnitsTooBigUTxO $
624+
DijkstraEra.DijkstraUtxowFailure $
625+
DijkstraEra.UtxoFailure $
626+
DijkstraEra.ExUnitsTooBigUTxO $
626627
L.Mismatch
627628
{ mismatchSupplied = txsz
628629
, mismatchExpected = limit
@@ -764,7 +765,7 @@ instance TxRefScriptsSizeTooBig ConwayEra where
764765
instance TxRefScriptsSizeTooBig DijkstraEra where
765766
txRefScriptsSizeTooBig txsz limit =
766767
SL.ApplyTxError . pure $
767-
ConwayEra.ConwayTxRefScriptsSizeTooBig $
768+
DijkstraEra.DijkstraTxRefScriptsSizeTooBig $
768769
L.Mismatch
769770
{ mismatchSupplied = txsz
770771
, mismatchExpected = limit

0 commit comments

Comments
 (0)