Refactor: move compute budget runtime logic into solana-program-runtime (#22533)

This commit is contained in:
Justin Starry
2022-01-17 15:52:33 +08:00
committed by GitHub
parent c17e54e3f6
commit b27976626a
7 changed files with 301 additions and 283 deletions

View File

@ -1,6 +1,7 @@
use {
crate::{
accounts_data_meter::AccountsDataMeter,
compute_budget::ComputeBudget,
ic_logger_msg, ic_msg,
instruction_recorder::InstructionRecorder,
log_collector::LogCollector,
@ -13,7 +14,6 @@ use {
solana_sdk::{
account::{AccountSharedData, ReadableAccount},
bpf_loader_upgradeable::{self, UpgradeableLoaderState},
compute_budget::ComputeBudget,
feature_set::{
cap_accounts_data_len, do_support_realloc, neon_evm_compute_budget,
reject_empty_instruction_without_program, remove_native_loader, requestable_heap_size,