File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/HardFork/Combinator Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -274,10 +274,19 @@ instance CanHardFork xs => TxLimits (HardForkBlock xs) where
274
274
type TxMeasure (HardForkBlock xs ) = HardForkTxMeasure xs
275
275
276
276
txWireSize =
277
- hcollapse
277
+ \ tx ->
278
+ let tx' :: NS GenTx xs
279
+ tx' = getOneEraGenTx (getHardForkGenTx tx)
280
+ -- HFC overhead
281
+ -- note that HFC might be disabled, then this gives an upperbound.
282
+ overhead | nsToIndex tx' <= 23 = 2
283
+ | otherwise = 3
284
+
285
+ in
286
+ (+ overhead)
287
+ . hcollapse
278
288
. hcmap proxySingle (K . txWireSize)
279
- . getOneEraGenTx
280
- . getHardForkGenTx
289
+ $ tx'
281
290
282
291
blockCapacityTxMeasure
283
292
HardForkLedgerConfig {.. }
You can’t perform that action at this time.
0 commit comments