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

remove cluster_type from hash_stored_account #16375

Closed
wants to merge 1 commit into from

Conversation

jeffwashington
Copy link
Contributor

Problem

Summary of Changes

Fixes #

@@ -2878,33 +2878,20 @@ impl AccountsDb {
pub fn hash_stored_account(
slot: Slot,
account: &StoredAccountMeta,
cluster_type: &ClusterType,
_cluster_type: &ClusterType,
Copy link
Member

@ryoqun ryoqun Apr 5, 2021

Choose a reason for hiding this comment

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

just making sure: you can stop passing this altogether from the upmost caller (assuming we don't have any immediate plan to change the hashing.).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, phase 2. ;-) roughing out this is what you meant.

account.account_meta.rent_epoch,
account.data,
&account.meta.pubkey,
include_owner,
Copy link
Member

@ryoqun ryoqun Apr 5, 2021

Choose a reason for hiding this comment

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

also, you can remove this flag. blake3 and include_owner thing even predate the feature activation @mvines brought about. blame @carllin and @ryoqun for NOT cleaning them, respectively. xD

@jeffwashington
Copy link
Contributor Author

taken over by @brooksprumo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants