From 1cd136052dfd02ae53e6b7ac9e1a836d97234924 Mon Sep 17 00:00:00 2001 From: itamar Date: Thu, 19 Sep 2024 13:43:10 -0400 Subject: [PATCH] fixed resp --- .../sequencerblock/v1alpha1/optimistic_block.proto | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proto/sequencerblockapis/astria/sequencerblock/v1alpha1/optimistic_block.proto b/proto/sequencerblockapis/astria/sequencerblock/v1alpha1/optimistic_block.proto index 63976bef0c..bbedeb4c52 100644 --- a/proto/sequencerblockapis/astria/sequencerblock/v1alpha1/optimistic_block.proto +++ b/proto/sequencerblockapis/astria/sequencerblock/v1alpha1/optimistic_block.proto @@ -29,11 +29,21 @@ message BlockCommit { bytes block_hash = 2; } +message StreamOptimisticBlockRequest { + // The rollup id for which the Sequencer block is being streamed. + astria.primitive.v1.RollupId rollup_id = 1; +} + +message StreamOptimisticBlockResponse { + // The optimistic Sequencer block that is being streamed, filtered for the provided rollup id. + astria.sequencerblock.v1alpha1.FilteredSequencerBlock block = 1; +} + // The Sequencer will serve this to the aucitoneer service OptimisticBlockService { // The Sequencer will stream the optimistic Sequencer block (filtered for the provided // rollup id) to the Auctioneer. - rpc StreamOptimisticBlock(astria.primitive.v1.RollupId) returns (stream astria.sequencerblock.v1alpha1.FilteredSequencerBlock); + rpc StreamOptimisticBlock(StreamOptimisticBlockRequest) returns (stream StreamOptimisticBlockResponse); // The Sequencer will stream the block commits to the Auctioneer. rpc StreamBlockCommitments(google.protobuf.Empty) returns (stream BlockCommit); }