Cleanup old features (#15391)
This commit is contained in:
@ -2879,7 +2879,7 @@ impl Bank {
|
||||
let mut transaction_log_messages = Vec::with_capacity(txs.len());
|
||||
let bpf_compute_budget = self
|
||||
.bpf_compute_budget
|
||||
.unwrap_or_else(|| BpfComputeBudget::new(&self.feature_set));
|
||||
.unwrap_or_else(BpfComputeBudget::new);
|
||||
|
||||
let executed: Vec<TransactionExecutionResult> = loaded_accounts
|
||||
.iter_mut()
|
||||
|
@ -1645,7 +1645,7 @@ mod tests {
|
||||
executors.clone(),
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(result, Ok(()));
|
||||
assert_eq!(accounts[0].borrow().lamports, 100);
|
||||
@ -1670,7 +1670,7 @@ mod tests {
|
||||
executors.clone(),
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(
|
||||
result,
|
||||
@ -1699,7 +1699,7 @@ mod tests {
|
||||
executors,
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(
|
||||
result,
|
||||
@ -1812,7 +1812,7 @@ mod tests {
|
||||
executors.clone(),
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(
|
||||
result,
|
||||
@ -1841,7 +1841,7 @@ mod tests {
|
||||
executors.clone(),
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(result, Ok(()));
|
||||
|
||||
@ -1867,7 +1867,7 @@ mod tests {
|
||||
executors,
|
||||
None,
|
||||
Arc::new(FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(&FeatureSet::all_enabled()),
|
||||
BpfComputeBudget::new(),
|
||||
);
|
||||
assert_eq!(result, Ok(()));
|
||||
assert_eq!(accounts[0].borrow().lamports, 80);
|
||||
|
Reference in New Issue
Block a user