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

chore: rename data length to sequence length #864

Merged

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Oct 12, 2022

Motivaiton: "sequence length" is more precise than "data length"

Motivaiton: "sequence length" is more precise than "data length"
@rootulp rootulp added the chore optional label for items that follow the `chore` conventional commit label Oct 12, 2022
@rootulp rootulp self-assigned this Oct 12, 2022
@rootulp rootulp enabled auto-merge (squash) October 12, 2022 16:39
@@ -114,7 +114,7 @@ Types
Logic

1. Account for the new `InfoByte` in all share splitting and merging code.
1. Encode a total data length varint into the first compact share of a sequence.
1. Encode a total sequence length varint into the first compact share of a sequence.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Encode a total sequence length varint into the first compact share of a sequence.
1. Encode a total sequence length variant into the first compact share of a sequence.

Copy link
Member

@MSevey MSevey Oct 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or is this short for variable integer?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

varint is short for variable-width integer. I think variable-length integer is also often used.

Ref: https://developers.google.com/protocol-buffers/docs/encoding#varints

@rootulp rootulp merged commit 108d772 into celestiaorg:main Oct 13, 2022
@rootulp rootulp deleted the rp/rename-data-length-to-sequence-length branch October 13, 2022 01:33
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Motivaiton: "sequence length" is more precise than "data length"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore optional label for items that follow the `chore` conventional commit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants