Skip to content
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

Data trie value #4686

Merged
merged 4 commits into from
Nov 14, 2022
Merged

Data trie value #4686

merged 4 commits into from
Nov 14, 2022

Conversation

BeniaminDrasovean
Copy link
Contributor

Reasoning behind the pull request

  • In order to parse the value from a data trie leaf differentely (based on the activation of AutoBalanceDataTriesFlag), a new object that will handle the parsing needs to be passed to GetAllLeavesOnChannel().

Proposed changes

  • Pass a disabledTrieLeafParser() to GetAllLeavesOnChannel(). This will be changed to a new implementation of trieLeafParser in a future PR.

Pre-requisites

Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:

  • was the PR targeted to the correct branch?
  • if this is a larger feature that probably needs more than one PR, is there a feat branch created?
  • if this is a feat branch merging, do all satellite projects have a proper tag inside go.mod?

@BeniaminDrasovean BeniaminDrasovean added the ignore-for-release-notes Do not include item in release notes label Nov 11, 2022
@BeniaminDrasovean BeniaminDrasovean self-assigned this Nov 11, 2022
@ssd04 ssd04 self-requested a review November 11, 2022 13:26
ssd04
ssd04 previously approved these changes Nov 11, 2022
@iulianpascalau iulianpascalau self-requested a review November 11, 2022 18:06
"github.com/ElrondNetwork/elrond-go-core/core/keyValStorage"
)

type disabledTrieLeafParser struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe rename this to trieLeafParserV1 ?
As this will be the first version we have implemented

And the package should be parsers ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactored.

@BeniaminDrasovean BeniaminDrasovean merged commit 4daa25f into feat/balance-data-tries Nov 14, 2022
@BeniaminDrasovean BeniaminDrasovean deleted the data-trie-value branch November 14, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release-notes Do not include item in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants