Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sync): add parameter to request blocks be sent in raw format #30

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all 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
3 changes: 3 additions & 0 deletions sync/proto/utxorpc/sync/v1/sync.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ message AnyChainBlock {
message FetchBlockRequest {
repeated BlockRef ref = 1; // List of block references.
google.protobuf.FieldMask field_mask = 2; // Field mask to selectively return fields.
bool raw = 3; // Request block be returned in raw format.
}

// Response containing the fetched blocks.
Expand All @@ -34,6 +35,7 @@ message DumpHistoryRequest {
BlockRef start_token = 2; // Starting point for the block history dump.
uint32 max_items = 3; // Maximum number of items to return.
google.protobuf.FieldMask field_mask = 4; // Field mask to selectively return fields.
bool raw = 5; // Request blocks be returned in raw format.
}

// Response containing the dumped block history.
Expand All @@ -45,6 +47,7 @@ message DumpHistoryResponse {
// Request to follow the tip of the blockchain.
message FollowTipRequest {
repeated BlockRef intersect = 1; // List of block references to find the intersection.
bool raw = 2; // Request blocks be returned in raw format.
}

// Response containing the action to perform while following the tip.
Expand Down