Skip to content

Commit

Permalink
Set the maximum allowed refScript size per transaction to 200Kb
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Jul 1, 2024
1 parent 734a6cb commit a2a10e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Ledger.hs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ data ConwayLedgerPredFailure era
-- coded limit on the total number of bytes of reference scripts that a transaction can
-- use.
maxRefScriptSizePerTx :: Int
maxRefScriptSizePerTx = 1024 * 1024 -- 1MiB
maxRefScriptSizePerTx = 200 * 1024 -- 200KiB

type instance EraRuleFailure "LEDGER" (ConwayEra c) = ConwayLedgerPredFailure (ConwayEra c)

Expand Down

0 comments on commit a2a10e8

Please sign in to comment.