Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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!: Refactor
PrepareProposal
to produce blocks using the non-interactive defaults #692feat!: Refactor
PrepareProposal
to produce blocks using the non-interactive defaults #692Changes from 16 commits
51f1e57
8e45369
4ec82ae
766306a
77f2f28
29127ba
9257ff9
e23b689
ef443ad
3fd5f68
5e024e4
388891c
8e87a05
402126d
fea19f4
de15c44
42b365b
6895ace
25ac91b
49f50b8
f422e70
e93ea4b
c4d1b99
bf97477
e62f91f
7a1b6d4
324966d
9c0aa58
cbda052
a642276
92f32fc
2623c93
7101a7b
79f378a
9c38323
50baf90
efb41c1
5b1eb21
eb8d8de
750e31c
7279a0d
2dce08a
4484a86
776e013
228bb9e
7d2ee33
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[follow-up PR] we may replace the
contiguous
terminology withcompact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[no change needed b/c not modified in this PR][potential refactor] this logic seems confusing because it isn't congruent with the doc comment for
tsSplitter.Count()
. I would expecttxCount
to account for an additional share if the pending share isn't full but has some bytes in it.Should the rounding up occur inside
Count()
?celestia-app/pkg/shares/split_contiguous_shares.go
Lines 145 to 152 in 6895ace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question] is it possible to document how this expression was derived?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, we can do a better job of that. tried to with the comment above it, but refactored it to hopefully be clearer. 324966d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notes from sync:
128
is the # of bytes in a share commitment.8
looks like a magic number.Is it possible to use constants for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
7279a0d
and see #701