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

update types/part_set.go #651

Merged
merged 1 commit into from
Jul 5, 2023
Merged

update types/part_set.go #651

merged 1 commit into from
Jul 5, 2023

Conversation

mansub-song
Copy link
Contributor

Hi, I'm looking at the ostracon code and came across the annotation that I found awkward.
I found that the same comment is described not only in ostracon but also in cometBFT, so I changed cometBFT first and my proposal was approved.
Here is the related link: cometbft/cometbft#1056

In types/params.go, the value of BlockPartSizeBytes is 65536 (about 64kB).
In the function func NewPartSetFromData(data []byte, partSize uint32) *PartSet in types/part_set.go, the function uses the parameter partSize which is the value of BlockPartSizeBytes.
However, the annotation says it's 4kB, so I'm doing a pull request to fix it.

@CLAassistant
Copy link

CLAassistant commented Jul 3, 2023

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #651 (d1b2bee) into main (9959bd3) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #651      +/-   ##
==========================================
- Coverage   66.12%   66.10%   -0.02%     
==========================================
  Files         277      275       -2     
  Lines       36992    36930      -62     
==========================================
- Hits        24462    24414      -48     
+ Misses      10756    10750       -6     
+ Partials     1774     1766       -8     
Impacted Files Coverage Δ
crypto/crypto.go 0.00% <ø> (ø)
crypto/secp256k1/secp256k1.go 69.56% <0.00%> (ø)
crypto/sr25519/pubkey.go 43.58% <0.00%> (+7.69%) ⬆️
state/execution.go 66.58% <ø> (ø)
statesync/stateprovider.go 31.20% <ø> (ø)
types/block.go 79.58% <ø> (ø)
types/validation.go 64.00% <ø> (ø)
crypto/ed25519/ed25519.go 51.38% <100.00%> (+6.26%) ⬆️
types/part_set.go 70.61% <100.00%> (ø)

... and 10 files with indirect coverage changes

@ulbqb ulbqb added the C: enhancement Classification: New feature or its request, or improvement in maintainability of code label Jul 4, 2023
@zemyblue zemyblue assigned tnasu and mansub-song and unassigned mansub-song Jul 5, 2023
@zemyblue
Copy link
Member

zemyblue commented Jul 5, 2023

Thank you @mansub-song for your contribution.

@ulbqb ulbqb merged commit d72a64a into Finschia:main Jul 5, 2023
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: enhancement Classification: New feature or its request, or improvement in maintainability of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants