Repository navigation
Document Shred-related types - #14428
Conversation
be56b7b to
fecfe70
Compare
fecfe70 to
96afa92
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #14428 +/- ##
=========================================
- Coverage 82.4% 82.4% -0.1%
=========================================
Files 937 937
Lines 374297 374297
=========================================
- Hits 308557 308550 -7
- Misses 65740 65747 +7 🚀 New features to boost your workflow:
|
6133c82 to
73bd4e4
Compare
|
Rebased the PR, and removed the first commit (which was now a duplicate of #14656). So what's left is basically documenting the Any chance I can get a review on this? |
steviez
left a comment
There was a problem hiding this comment.
I'll read through the comment in the morning after a night of sleep, but for now, mind updating the PR description to reflect current state + get green CI ?
Shred-related types
73bd4e4 to
019bf9b
Compare
|
@steviez done |
steviez
left a comment
There was a problem hiding this comment.
There are some nice additions here; didn't make it all the way through but have some nits. Might have @alexpyattaev take a look too since I believe work is starting to refactor Shred and underlying types in very near future. I think lots of this will still be valid but could always put it in now and then adjust as refactoring happen
|
FYI we're taking a fresh look at the shred struct in #6028. |
@alexpyattaev - What do you think about landing these docs changes now ? I know a lot of code will be moving around for that, but the changes are seemingly good additions. The diff you just linked is +4800 so I'll admit I didn't look to see if we have the same stuff that @plafer introduced here |
|
I do not mind these docs landing, docs do not hurt, the FYI is because much of the current code may get axed soon. The new docs here are far better that status quo, so I'm in favor of merging this PR ASAP. That PR is a preview of a future state, it will obviously need to be chunked up for actual merge. It is also ~2000 LoC less than existing ledger/src/shred* implementation. |
|
Should we try to push this one through then? IMO it's worth merging even if this gets scrapped soon, since at the very least in the future, anyone looking at the current implementation in the git history will have docs to help. |
Agree, this documents what we have, which would be handy during migration. |
|
@steviez friendly bump 🙂 |
fb52619 to
5768142
Compare
The definition of how shred header fields work is relatively complex and previously had to be deduced by looking at the implementation. This PR documents those fields, adding additional context where (I judged was) useful.