Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/simulation/trace.shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ interface GeneratedEndorserBlock extends GeneratedBlockEvent {
id: string;
pipeline: number;
input_blocks: BlockRef[];
endorser_blocks: BlockRef[];
}

interface GeneratedVote extends GeneratedBlockEvent {
Expand Down
7 changes: 7 additions & 0 deletions data/simulation/trace.shared.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@
},
"type": "array"
},
"endorser_blocks": {
"items": {
"$ref": "#/definitions/BlockRef"
},
"type": "array"
},
"pipeline": {
"type": "number"
},
Expand All @@ -127,6 +133,7 @@
"required": [
"id",
"input_blocks",
"endorser_blocks",
"pipeline",
"producer",
"size_bytes",
Expand Down
1 change: 1 addition & 0 deletions leios-trace-hs/src/LeiosEvents.hs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ data Event where
, pipeline :: !PipelineNo
, bytes :: !Word64
, input_blocks :: ![BlockRef]
, endorser_blocks :: ![BlockRef]
} ->
Event
RBGenerated ::
Expand Down
1 change: 1 addition & 0 deletions leios-trace-verifier/hs-src/test/Spec/Transition.hs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ transition GenerateEB =
pipeline <- uses stageLength $ (slot `div`) . fromIntegral
bytes <- lift arbitrary
input_blocks <- lift . sublistOf =<< uses ibs (fmap BlockRef . S.toList)
endorser_blocks <- lift . sublistOf =<< uses ebs (fmap BlockRef . S.toList)
pure [EBGenerated{..}]
transition ReceiveEB =
do
Expand Down
1 change: 1 addition & 0 deletions simulation/src/LeiosProtocol/Short/Sim.hs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ sharedEvent leios nodeNames e = case e of
Shared.EBGenerated
{ bytes = fromIntegral (messageSizeBytes eb)
, input_blocks = map (Shared.BlockRef . T.pack . mkStringId) eb.inputBlocks
, endorser_blocks = map (Shared.BlockRef . T.pack . mkStringId) eb.endorseBlocksEarlierPipeline
, pipeline = coerce $ endorseBlockPipeline leios eb
, ..
}
Expand Down
Loading