-
Notifications
You must be signed in to change notification settings - Fork 267
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
Rename appconsts to use Compact
and Sparse
terminology
#710
Conversation
Codecov Report
@@ Coverage Diff @@
## main #710 +/- ##
=======================================
Coverage 44.52% 44.52%
=======================================
Files 32 32
Lines 3189 3189
=======================================
Hits 1420 1420
Misses 1666 1666
Partials 103 103
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
🚀
I would approve, but I want to ensure that Rachid's question or suggestion has a chance to be addressed before automerging, even if its non-blocking/orthogonal |
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.
…rg#710) * feat: move share consts from celestia-core * feat: new consts for universal share encoding * remove universal share constants * address @sweexordious feedback
…elestiaorg#710)" This reverts commit 75e2b9d.
* Add ParseInfoReservedByte * Update split contiguous shares to account for info byte * Fix TestContigShareWriter test * Improve names in parseDataLength * Remove unused function parseDataLength * revert local celestia-core replace * docs: improve docs * docs: fix doc comments * feat: move share consts from celestia-core * feat: new consts for universal share encoding * remove universal share constants * fix: pass Test_parseSparseShares * Rename appconsts to use `Compact` and `Sparse` terminology (#710) * feat: move share consts from celestia-core * feat: new consts for universal share encoding * remove universal share constants * address @sweexordious feedback * Revert "Rename appconsts to use `Compact` and `Sparse` terminology (#710)" This reverts commit 75e2b9d. * revert change to exactMsgShareSize * fix: add info byte to namespace padded shares Makes `TestParsePaddedMsg` pass * pass first two test cases of TestMerge * pass: TestMerge * pass: TestTxInclusion by updating proof to use share pkg * pass: TestTxSharePosition * pass: Test_genRowShares * pass: Test_genOrigRowShares * use share package over types * pass: TestPrepareMessagesWithReservedNamespaces * pass: TestCreateCommitment by updating expected bytes * extract doc comments to separate PR * extract separate PR for specifying square size in shares_test.go * test: add TestMsgShareContainsInfoByte * test: add TestContiguousMsgShareContainsInfoByte * test: add compact share tests * throw error if isMessageStart != isNewMessage * throw error if compact share does not start with a share with isMessageStart=true
ShareReservedBytes
=>CompactShareReservedBytes
TxShareSize
=>CompactShareContentSize
MsgShareSize
=>SparseShareContentSize