Skip to content

Commit b37714d

Browse files
committed
Add EB links to EBGenerated event
1 parent 1b034f0 commit b37714d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

leios-trace-hs/src/LeiosEvents.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ data Event where
119119
, pipeline :: !PipelineNo
120120
, bytes :: !Word64
121121
, input_blocks :: ![BlockRef]
122+
, endorser_blocks :: ![BlockRef]
122123
} ->
123124
Event
124125
RBGenerated ::

leios-trace-verifier/hs-src/test/Spec/Transition.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ transition GenerateEB =
214214
pipeline <- uses stageLength $ (slot `div`) . fromIntegral
215215
bytes <- lift arbitrary
216216
input_blocks <- lift . sublistOf =<< uses ibs (fmap BlockRef . S.toList)
217+
endorser_blocks <- lift . sublistOf =<< uses ebs (fmap BlockRef . S.toList)
217218
pure [EBGenerated{..}]
218219
transition ReceiveEB =
219220
do

simulation/src/LeiosProtocol/Short/Sim.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ sharedEvent leios nodeNames e = case e of
355355
Shared.EBGenerated
356356
{ bytes = fromIntegral (messageSizeBytes eb)
357357
, input_blocks = map (Shared.BlockRef . T.pack . mkStringId) eb.inputBlocks
358+
, endorser_blocks = map (Shared.BlockRef . T.pack . mkStringId) eb.endorseBlocksEarlierPipeline
358359
, pipeline = coerce $ endorseBlockPipeline leios eb
359360
, ..
360361
}

0 commit comments

Comments
 (0)