-
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
Add marshaller to data trie tracker #4640
Add marshaller to data trie tracker #4640
Conversation
Codecov ReportBase: 70.72% // Head: 70.72% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feat/balance-data-tries #4640 +/- ##
========================================================
Coverage 70.72% 70.72%
========================================================
Files 625 625
Lines 83128 83131 +3
========================================================
+ Hits 58794 58797 +3
Misses 19926 19926
Partials 4408 4408
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. |
require.Nil(t, err) | ||
err = rwd.userAccountsDB.SaveAccount(peerAccount) | ||
require.Nil(t, err) | ||
isDelegationSCAddress = rwd.isSystemDelegationSC(peerAccount.AddressBytes()) | ||
require.False(t, isDelegationSCAddress) | ||
|
||
// existing user account | ||
userAccount, err := state.NewUserAccount([]byte("userAddress"), &hashingMocks.HasherMock{}) | ||
userAccount, err := state.NewUserAccount([]byte("userAddress"), &hashingMocks.HasherMock{}, &marshal.GogoProtoMarshalizer{}) |
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.
can't we use here the mock?
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.
state/trackableDataTrie.go
Outdated
dirtyData map[string][]byte | ||
tr common.Trie | ||
hasher hashing.Hasher | ||
marshalizer marshal.Marshalizer |
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.
rename to marshaller ?
Reasoning behind the pull request
Proposed changes
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
?