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

Reduce usage of solana-sdk in accounts-db #4180

Merged
merged 4 commits into from
Jan 2, 2025

Conversation

kevinheavey
Copy link

Problem

Most of the solana-sdk usage in accounts-db can be replaced.

Summary of Changes

Replace some of it. There's a lot to replace and this PR is big enough already

Copy link

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

I think the PR can be merged as-is. I know it's time consuming to get large PRs through due to CI + merge conflicts. Non-essential changes can be handled in follow-up PRs.

Comment on lines +5470 to +5471
solana_pubkey::Pubkey::from([0; 32]),
solana_pubkey::Pubkey::from([255; 32]),

Choose a reason for hiding this comment

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

Could these use Pubkey directly instead?

Suggested change
solana_pubkey::Pubkey::from([0; 32]),
solana_pubkey::Pubkey::from([255; 32]),
Pubkey::from([0; 32]),
Pubkey::from([255; 32]),

accounts-db/Cargo.toml Show resolved Hide resolved
@kevinheavey kevinheavey added the automerge automerge Merge this Pull Request automatically once CI passes label Jan 2, 2025
@mergify mergify bot merged commit 85b647f into anza-xyz:master Jan 2, 2025
52 checks passed
kevinheavey added a commit to kevinheavey/agave that referenced this pull request Jan 3, 2025
* replace all usage of solana_sdk::pubkey::new_rand

* replace usage of solana_sdk::hash::Hash

* replace usage of solana_sdk::clock::Slot

* replace usage of solana_sdk::pubkey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge Merge this Pull Request automatically once CI passes need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants