Skip to content

Commit 4bf4a71

Browse files
committed
mock-block: more precise types
1 parent e759625 commit 4bf4a71

File tree

1 file changed

+3
-3
lines changed
  • ouroboros-consensus/src/unstable-mock-block/Ouroboros/Consensus/Mock/Ledger

1 file changed

+3
-3
lines changed

ouroboros-consensus/src/unstable-mock-block/Ouroboros/Consensus/Mock/Ledger/Block.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ instance TxLimits (SimpleBlock c ext) where
440440
type TxMeasure (SimpleBlock c ext) = SizeInBytes
441441

442442
blockTxCapacity _cfg _st = simpleBlockTxCapacity
443-
txInBlockSize _cfg _st = SizeInBytes . txSize
443+
txInBlockSize _cfg _st = txSize
444444

445445
txMeasureBytes _ = id
446446

@@ -489,8 +489,8 @@ mkSimpleGenTx tx = SimpleGenTx
489489
, simpleGenTxId = Hash.hashWithSerialiser toCBOR tx
490490
}
491491

492-
txSize :: GenTx (SimpleBlock c ext) -> Word32
493-
txSize = fromIntegral . Lazy.length . serialise
492+
txSize :: GenTx (SimpleBlock c ext) -> SizeInBytes
493+
txSize = SizeInBytes . fromIntegral . Lazy.length . serialise
494494

495495
{-------------------------------------------------------------------------------
496496
Support for QueryLedger

0 commit comments

Comments
 (0)