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

@@ -2,6 +2,7 @@ use {
serde::{Deserialize, Serialize},
solana_measure::measure::Measure,
solana_program_runtime::{
compute_budget::ComputeBudget,
instruction_recorder::InstructionRecorder,
invoke_context::{BuiltinProgram, Executors, InvokeContext},
log_collector::LogCollector,
@@ -10,7 +11,6 @@ use {
},
solana_sdk::{
account::WritableAccount,
compute_budget::ComputeBudget,
feature_set::{prevent_calling_precompiles_as_programs, FeatureSet},
hash::Hash,
message::SanitizedMessage,