(cherry picked from commit 46aac4819a
)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
This commit is contained in:
@ -3253,7 +3253,7 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
|
||||
fn recheck_cross_program_support(self: &mut Bank) {
|
||||
fn recheck_cross_program_support(&mut self) {
|
||||
if OperatingMode::Stable == self.operating_mode() {
|
||||
self.set_cross_program_support(self.epoch() >= 63);
|
||||
} else {
|
||||
@ -3261,7 +3261,7 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
|
||||
fn recheck_compute_budget(self: &mut Bank) {
|
||||
fn recheck_compute_budget(&mut self) {
|
||||
let compute_budget = if OperatingMode::Stable == self.operating_mode() {
|
||||
if self.epoch() >= u64::MAX - 1 {
|
||||
ComputeBudget::default()
|
||||
@ -3282,7 +3282,7 @@ impl Bank {
|
||||
self.set_compute_budget(compute_budget);
|
||||
}
|
||||
|
||||
fn reconfigure_token2_native_mint(self: &mut Bank) {
|
||||
fn reconfigure_token2_native_mint(&mut self) {
|
||||
let reconfigure_token2_native_mint = match self.operating_mode() {
|
||||
OperatingMode::Development => true,
|
||||
OperatingMode::Preview => self.epoch() == 95,
|
||||
|
Reference in New Issue
Block a user