Skip to content

Commit bfce2c9

Browse files
committed
Add leiosCertBlockBodyL to DijkstraEraBlockBody
1 parent 16e6f57 commit bfce2c9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • eras/dijkstra/impl/src/Cardano/Ledger/Dijkstra/BlockBody

eras/dijkstra/impl/src/Cardano/Ledger/Dijkstra/BlockBody/Internal.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,15 @@ mkBasicBlockBodyDijkstra =
131131

132132
-- | Dijkstra-specific extensions to 'EraBlockBody'
133133
class EraBlockBody era => DijkstraEraBlockBody era where
134+
leiosCertBlockBodyL :: Lens' (BlockBody era) (StrictMaybe LeiosCert)
135+
-- ^ Lens to access the optional Leios certificate in the block body
136+
134137
perasCertBlockBodyL :: Lens' (BlockBody era) (StrictMaybe PerasCert)
135138
-- ^ Lens to access the optional Peras certificate in the block body
136139

137140
instance DijkstraEraBlockBody DijkstraEra where
141+
leiosCertBlockBodyL = lensMemoRawType @DijkstraEra dbbrLeiosCert (\bb c -> bb {dbbrLeiosCert = c})
142+
138143
perasCertBlockBodyL = lensMemoRawType @DijkstraEra dbbrPerasCert (\bb c -> bb {dbbrPerasCert = c})
139144

140145
deriving instance (Typeable era, NoThunks (Tx TopTx era)) => NoThunks (DijkstraBlockBodyRaw era)

0 commit comments

Comments
 (0)