-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove panic from IntervalDigestFromBytes #22
Conversation
@@ -220,3 +220,13 @@ func nextSubtreeSize(start, end uint64) int { | |||
} | |||
return 1 << uint(ideal) | |||
} | |||
|
|||
// mustIntervalDigestFromBytes optimistially converts bytes to IntervalDigest or panics | |||
func mustIntervalDigestFromBytes(idlen namespace.IDSize, bytes []byte) namespace.IntervalDigest { |
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.
Don't think we need to export this
Codecov Report
@@ Coverage Diff @@
## master #22 +/- ##
==========================================
- Coverage 95.39% 94.82% -0.58%
==========================================
Files 7 7
Lines 304 309 +5
==========================================
+ Hits 290 293 +3
- Misses 10 11 +1
- Partials 4 5 +1
Continue to review full report at Codecov.
|
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.
Thanks @Wondertan 🙏🏼
Before including this change in lazyledger-core, we should tag another release.
@liamsi, ok will do that |
Fixes #20