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

optional prioritization_fee_cache #4144

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

apfitzge
Copy link

Problem

#4142

Summary of Changes

  • Make prioritization fee cache optional

Fixes #

@apfitzge apfitzge changed the title Committer: optional prioritization_fee_cache optional prioritization_fee_cache Dec 16, 2024
Copy link

mergify bot commented Dec 16, 2024

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/web3.js (example)

Thank you for keeping the RPC clients in sync with the server API @apfitzge.

@@ -1107,7 +1110,7 @@ impl Validator {
connection_cache.clone(),
max_complete_transaction_status_slot,
max_complete_rewards_slot,
prioritization_fee_cache.clone(),
prioritization_fee_cache.clone().unwrap(),
Copy link
Author

Choose a reason for hiding this comment

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

I think ideally, we would not have to unwrap here.
prioritization_fee_cache can/should be initialized in the same if statement...however it involves re-ordering a lot of stuff so that RPC is spawned earlier on.

Thinking it's simpler for this PR to just unwrap, and a follow-up PR for re-ordering initializaton in validator.rs?

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.

1 participant