@@ -295,25 +295,25 @@ theLedgerLens f x =
295295
296296instance ShelleyCompatible p (ShelleyEra c ) => Mempool. TxLimits (ShelleyBlock p (ShelleyEra c )) where
297297 type TxMeasure (ShelleyBlock p (ShelleyEra c )) = Mempool. ByteSize
298- txMeasure = Mempool. ByteSize . txInBlockSize . txForgetValidated
298+ txMeasure _st = Mempool. ByteSize . txInBlockSize . txForgetValidated
299299 txsBlockCapacity = Mempool. ByteSize . txsMaxBytes
300300
301301instance ShelleyCompatible p (AllegraEra c ) => Mempool. TxLimits (ShelleyBlock p (AllegraEra c )) where
302302 type TxMeasure (ShelleyBlock p (AllegraEra c )) = Mempool. ByteSize
303- txMeasure = Mempool. ByteSize . txInBlockSize . txForgetValidated
303+ txMeasure _st = Mempool. ByteSize . txInBlockSize . txForgetValidated
304304 txsBlockCapacity = Mempool. ByteSize . txsMaxBytes
305305
306306instance ShelleyCompatible p (MaryEra c ) => Mempool. TxLimits (ShelleyBlock p (MaryEra c )) where
307307 type TxMeasure (ShelleyBlock p (MaryEra c )) = Mempool. ByteSize
308- txMeasure = Mempool. ByteSize . txInBlockSize . txForgetValidated
308+ txMeasure _st = Mempool. ByteSize . txInBlockSize . txForgetValidated
309309 txsBlockCapacity = Mempool. ByteSize . txsMaxBytes
310310
311311instance ( ShelleyCompatible p (AlonzoEra c )
312312 ) => Mempool. TxLimits (ShelleyBlock p (AlonzoEra c )) where
313313
314314 type TxMeasure (ShelleyBlock p (AlonzoEra c )) = AlonzoMeasure
315315
316- txMeasure (ShelleyValidatedTx _txid vtx) =
316+ txMeasure _st (ShelleyValidatedTx _txid vtx) =
317317 AlonzoMeasure {
318318 byteSize = Mempool. ByteSize $ txInBlockSize (mkShelleyTx @ (AlonzoEra c ) @ p (SL. extractTx vtx))
319319 , exUnits = fromExUnits $ totExUnits (SL. extractTx vtx)
@@ -342,7 +342,7 @@ instance ( ShelleyCompatible p (BabbageEra c)
342342
343343 type TxMeasure (ShelleyBlock p (BabbageEra c )) = AlonzoMeasure
344344
345- txMeasure (ShelleyValidatedTx _txid vtx) =
345+ txMeasure _st (ShelleyValidatedTx _txid vtx) =
346346 AlonzoMeasure {
347347 byteSize = Mempool. ByteSize $ txInBlockSize (mkShelleyTx @ (BabbageEra c ) @ p (SL. extractTx vtx))
348348 , exUnits = fromExUnits $ totExUnits (SL. extractTx vtx)
@@ -361,7 +361,7 @@ instance ( ShelleyCompatible p (ConwayEra c)
361361
362362 type TxMeasure (ShelleyBlock p (ConwayEra c )) = AlonzoMeasure
363363
364- txMeasure (ShelleyValidatedTx _txid vtx) =
364+ txMeasure _st (ShelleyValidatedTx _txid vtx) =
365365 AlonzoMeasure {
366366 byteSize = Mempool. ByteSize $ txInBlockSize (mkShelleyTx @ (ConwayEra c ) @ p (SL. extractTx vtx))
367367 , exUnits = fromExUnits $ totExUnits (SL. extractTx vtx)
0 commit comments