Skip to content

Commit

Permalink
Fix stream request
Browse files Browse the repository at this point in the history
  • Loading branch information
kacpersaw authored and fasmat committed Sep 24, 2024
1 parent 9105e63 commit 74b6c7b
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 39 deletions.
93 changes: 56 additions & 37 deletions release/go/spacemesh/v2alpha1/malfeasance.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions release/openapi/swagger/src/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@
},
"smesherId": {
"type": "array",
"title": "list of smesher ids to fetch",
"items": {
"type": "string",
"format": "byte"
Expand Down
6 changes: 4 additions & 2 deletions spacemesh/v2alpha1/malfeasance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ message MalfeasanceProof {
}

message MalfeasanceRequest {
repeated bytes smesher_id = 1;
repeated bytes smesher_id = 1; // list of smesher ids to fetch
bool include_proof = 2; // whether to include proof
uint64 offset = 3; // adjusts the starting point for data
uint64 limit = 4; // specifies max number of items to fetch
Expand All @@ -39,7 +39,9 @@ service MalfeasanceService {
}

message MalfeasanceStreamRequest {
bool include_proof = 1; // whether to include proof
repeated bytes smesher_id = 1; // list of smesher ids to watch
bool include_proof = 2; // whether to include proof
bool watch = 3;
}

service MalfeasanceStreamService {
Expand Down

0 comments on commit 74b6c7b

Please sign in to comment.