-
Notifications
You must be signed in to change notification settings - Fork 204
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
Trie leaf data unmarshal #4821
Trie leaf data unmarshal #4821
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## feat/balance-data-tries #4821 +/- ##
==========================================================
Coverage ? 70.74%
==========================================================
Files ? 632
Lines ? 83542
Branches ? 0
==========================================================
Hits ? 59102
Misses ? 20023
Partials ? 4417 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -37,7 +37,7 @@ func (tlp *dataTrieLeafParser) ParseLeaf(trieKey []byte, trieVal []byte) (core.K | |||
if tlp.enableEpochsHandler.IsAutoBalanceDataTriesEnabled() { | |||
data := &dataTrieValue.TrieLeafData{} | |||
err := tlp.marshaller.Unmarshal(data, trieVal) | |||
if err == nil { | |||
if err == nil && !isEmptyTrieData(data) { |
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.
Please add a TODO to remove this after we have a proper fix on the marshaller.
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.
Done.
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?