Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Clarify the "direction" field of block requests #12438

Merged
merged 1 commit into from
Oct 12, 2022
Merged
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
1 change: 1 addition & 0 deletions client/network/sync/src/schema/api.v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ message BlockRequest {
// End at this block. An implementation defined maximum is used when unspecified.
bytes to_block = 4; // optional
// Sequence direction.
// If missing, should be interpreted as "Ascending".
Direction direction = 5;
// Maximum number of blocks to return. An implementation defined maximum is used when unspecified.
uint32 max_blocks = 6; // optional
Expand Down