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: Add checks on FillBlock squareSize #980

Merged
merged 3 commits into from
Nov 10, 2022

Conversation

vidhanarya
Copy link
Contributor

Add check on FillBlock -> squareSize arg:

  • Check squareSize should be > 2
  • Check squareSize is a pow of 2

Closes #867

@rach-id rach-id assigned rach-id and vidhanarya and unassigned rach-id Nov 9, 2022
Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

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

Thanks a lot for taking care of this.
Left typo fixes.

testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/node_interaction_api.go Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

Codecov Report

Merging #980 (b7c3d14) into main (29e0a27) will increase coverage by 3.60%.
The diff coverage is 58.33%.

@@            Coverage Diff             @@
##             main     #980      +/-   ##
==========================================
+ Coverage   26.13%   29.73%   +3.60%     
==========================================
  Files          77       72       -5     
  Lines        9353     8202    -1151     
==========================================
- Hits         2444     2439       -5     
+ Misses       6680     5533    -1147     
- Partials      229      230       +1     
Impacted Files Coverage Δ
app/app.go 6.49% <ø> (ø)
x/payment/types/events.go 0.00% <ø> (ø)
x/qgb/handler.go 0.00% <0.00%> (ø)
x/qgb/module.go 7.27% <ø> (+0.12%) ⬆️
x/qgb/types/codec.go 0.00% <ø> (ø)
x/qgb/types/genesis.pb.go 1.13% <ø> (ø)
x/qgb/types/query.pb.go 0.86% <ø> (ø)
pkg/shares/split_sparse_shares.go 70.00% <25.00%> (+2.03%) ⬆️
testutil/testnode/node_interaction_api.go 60.17% <100.00%> (-1.65%) ⬇️
x/payment/keeper/keeper.go 64.70% <100.00%> (+2.20%) ⬆️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

rach-id
rach-id previously approved these changes Nov 9, 2022
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/node_interaction_api.go Show resolved Hide resolved
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/full_node_test.go Outdated Show resolved Hide resolved
testutil/testnode/node_interaction_api.go Outdated Show resolved Hide resolved
@evan-forbes evan-forbes merged commit 8b9c4c9 into celestiaorg:main Nov 10, 2022
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Add check on `FillBlock` -> `squareSize` arg:
- Check squareSize should be > 2
- Check squareSize is a pow of 2

Closes celestiaorg#867
rach-id pushed a commit to rach-id/celestia-app that referenced this pull request Nov 16, 2022
Add check on `FillBlock` -> `squareSize` arg:
- Check squareSize should be > 2
- Check squareSize is a pow of 2

Closes celestiaorg#867
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testnode: Perform checks on squareSize argument in FillSquare method
5 participants