-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Define PohRecorder set_bank related test helper methods #33626
Define PohRecorder set_bank related test helper methods #33626
Conversation
@@ -642,6 +642,16 @@ impl PohRecorder { | |||
let _ = self.flush_cache(false); | |||
} | |||
|
|||
#[cfg(feature = "dev-context-only-utils")] | |||
pub fn set_bank_for_test(&mut self, bank: Arc<Bank>) { | |||
self.set_bank(bank, false) |
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.
i eliminated these false
s at all call-sites as a bonus.
} | ||
|
||
#[cfg(test)] | ||
pub fn set_bank_with_transaction_index_for_test(&mut self, bank: Arc<Bank>) { |
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.
fyi, this is only used once.... another justification for hiding the track_transaction_indexes
bool arg at this wrapper...
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.
lgtm
merged this knowing the ci failure is fixed in the master. rebase would need another full ci run and lgtm from someone. ;) |
Problem
my scheduler thing needs to introduce rather invasive code changes including the
BankWithScheduler
wrapping, which touches poh recorder code.Summary of Changes
Prepare some helper functions.
extracted from: #33070
note that this pr is quite similar to the previous prep. pr: #33537