-
Notifications
You must be signed in to change notification settings - Fork 180
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 mtrie with some minor fixes and small improvements #1801
Conversation
"rest" should only return rest of data. It was returning data+rest.
Buffer size in flattener.EncodeStorableTrie() was 2 bytes less which can cause additional buffer allocation.
In Ledger.Set(), PSMT.Update() returns error of type ledger.ErrMissingKeys. We don't need to convert error from ptrie.ErrMissingPath type because ledger.ErrMissingKeys type is being returned.
Codecov Report
@@ Coverage Diff @@
## master #1801 +/- ##
==========================================
+ Coverage 58.08% 58.10% +0.02%
==========================================
Files 576 576
Lines 34227 34217 -10
==========================================
+ Hits 19880 19883 +3
+ Misses 11754 11741 -13
Partials 2593 2593
Flags with carried forward coverage won't be shown. Click here to find out more.
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 Faye. Lots of good cleanups. 👍
Closes #1802
This PR updates mtrie with minor fixes and small improvements that don't break backward compatibility.
Changes include:
utils.ReadShortData()
(commit 2b84aaa)flattener.EncodeStorableTrie()
(commit 1fdfa14)Ledger.Set()
(commit f93cb56)This was done while onboarding and getting familiar with mtrie code.